Creating Event and Flag systems. Events are used to send and display a toast to the App. Flags are used to signal if some action has been performed, or if a package is installed.

This commit is contained in:
Roland 2022-12-23 16:04:09 -07:00
parent 5cbea1ba15
commit 93f0e7494f
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
45 changed files with 923 additions and 355 deletions

View file

@ -28,7 +28,6 @@ export class Settings extends React.Component {
hotspot_status: null,
throttle_on_startup: null,
throttle_status: null,
timezone: {timezone: null},
}
this.handleSubmit = this.handleSubmit.bind(this);
@ -50,7 +49,6 @@ export class Settings extends React.Component {
hotspot_status: settings.hotspot_status,
throttle_on_startup: settings.throttle_on_startup,
throttle_status: settings.throttle_status,
timezone: {value: settings.timezone, label: settings.timezone},
}, this.handleHotspotChange);
} catch (e) {
console.error(e);
@ -68,7 +66,6 @@ export class Settings extends React.Component {
hotspot_password: this.state.hotspot_password,
hotspot_ssid: this.state.hotspot_ssid,
throttle_on_startup: this.state.throttle_on_startup,
timezone: this.state.timezone.value,
}
await saveSettings(settings);
this.setState({disabled: false, pending: false});