New setting: Max volume
This commit is contained in:
parent
41f8092419
commit
11163f059b
4 changed files with 24 additions and 2 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue