New setting: Max volume
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/tag Build is failing

This commit is contained in:
nemunaire 2024-06-18 18:09:00 +02:00
commit 11163f059b
4 changed files with 24 additions and 2 deletions

View file

@ -5,12 +5,13 @@ export class Settings {
}
}
update({ language, gong_interval, weather_delay, weather_action, max_run_time }) {
update({ language, gong_interval, weather_delay, weather_action, max_run_time, max_volume }) {
this.language = language;
this.gong_interval = gong_interval;
this.weather_delay = weather_delay;
this.weather_action = weather_action;
this.max_run_time = max_run_time;
this.max_volume = max_volume;
}
async save() {

View file

@ -116,6 +116,20 @@
<InputGroupText>min</InputGroupText>
</InputGroup>
</FormGroup>
<FormGroup>
<Label for="maxVolume">Volume maximum</Label>
<InputGroup>
<Input
type="range"
id="maxVolume"
min="0"
max="65535"
bind:value={settings.max_volume}
on:input={submitSettings}
/>
</InputGroup>
</FormGroup>
{/await}
</Form>
</Container>