From 93afab4aadd02688002bac34133f884bf5ffa067 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Mon, 6 Dec 2021 19:16:22 -0600 Subject: rough in buttons --- src/web/src/components/System/Info.js | 44 +++++++++++++++++++++++++++++------ 1 file changed, 37 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/web/src/components/System/Info.js b/src/web/src/components/System/Info.js index 8d7db123..a39cfb6e 100644 --- a/src/web/src/components/System/Info.js +++ b/src/web/src/components/System/Info.js @@ -1,19 +1,49 @@ import React from 'react'; import YAML from 'yaml'; +import { restart, shutdown, getVersion } from '../../lib/application'; + +import { Button, Icon, Modal, Header } from 'semantic-ui-react'; import CodeEditor from '../Shared/CodeEditor'; const Info = ({ state }) => { const stateAsYaml = YAML.stringify(state, { simpleKeys: true, sortMapEntries: true }) return ( -
- -
+ <> +
+ +
+
+
+ +
+ Shut Down + } + centered + size='mini' + header={
} + content="Are you sure you want shut the application down? You'll need to manually start it again." + actions={['Cancel', { key: 'done', content: 'Shut Down', negative: true, onClick: shutdown }]} + /> + Restart + } + centered + size='mini' + header={
} + content='Are you sure you want restart the application?' + actions={['Cancel', { key: 'done', content: 'Restart', negative: true, onClick: restart }]} + /> +
+ ); } -- cgit v1.2.3