mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-02 04:46:18 -05:00
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:
parent
5cbea1ba15
commit
93f0e7494f
45 changed files with 923 additions and 355 deletions
|
|
@ -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});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue