mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-26 01:46:18 -05:00
Configs are displayed in new ConfigsPage under Admin.
- Configs can be imported and saved. - Configs are validated before imported. - API will refuse to save a config if it was not imported successfully.
This commit is contained in:
parent
d34301a085
commit
acf3dee179
22 changed files with 767 additions and 157 deletions
|
|
@ -297,8 +297,17 @@ export class SettingsPage extends React.Component {
|
|||
}
|
||||
|
||||
render() {
|
||||
const controlSegment = <Segment>
|
||||
<Header as='h3'>Control WROLPi</Header>
|
||||
<RestartButton/>
|
||||
<ShutdownButton/>
|
||||
</Segment>;
|
||||
|
||||
if (this.state.ready === false) {
|
||||
return <Loader active inline='centered'/>
|
||||
return <>
|
||||
<Loader active inline='centered'/>
|
||||
{controlSegment}
|
||||
</>
|
||||
} else if (this.state.ready === undefined) {
|
||||
return <ErrorMessage>Unable to fetch settings</ErrorMessage>
|
||||
}
|
||||
|
|
@ -539,11 +548,7 @@ export class SettingsPage extends React.Component {
|
|||
</Form>
|
||||
</Segment>
|
||||
|
||||
<Segment>
|
||||
<Header as='h3'>Control WROLPi</Header>
|
||||
<RestartButton/>
|
||||
<ShutdownButton/>
|
||||
</Segment>
|
||||
{controlSegment}
|
||||
</Container>;
|
||||
}
|
||||
}</SettingsContext.Consumer>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue