feedback on save button in admin config page

Massimo Melina committed Feb 6, 2022 at 11:42 UTC 5e043e0df715820690fecd1f2287998b70c25e70
1 file changed +2
admin/src/ConfigPage.ts
+2
@@ -7,6 +7,7 @@ import { Dict } from './misc'
7 import { subscribeKey } from 'valtio/utils'
8 import { Form, ServerPort, BoolField, NumberField, StringField, SelectField } from './Form';
9 import StringStringField from './StringStringField'
10 +import { alertDialog } from './dialog'
11
12 let loaded: Dict | undefined
13
@@ -72,6 +73,7 @@ export default function ConfigPage() {
73 Object.assign(loaded, state.changes) // since changes are recalculated subscribing state.config, but it depends on 'loaded' to (which cannot be subscribed), be sure to update loaded first
74 recalculateChanges()
75 console.debug('saved')
76 + await alertDialog("Changes applied")
77 }
78 }
79