diff options
author | Kali Kaneko <kali@leap.se> | 2017-08-29 11:00:11 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2017-08-30 16:18:16 -0400 |
commit | 39a805929dab586ff77752e86f86a980535f97ef (patch) | |
tree | 1cabf70d2a20bc132ed1a28038b4adb1deb102a1 | |
parent | f7ec527e8034c0faabeda2766918ea25b3df686a (diff) |
[bug] change status on ui too
-rw-r--r-- | ui/app/components/main_panel/email_section.js | 2 | ||||
-rw-r--r-- | ui/app/components/main_panel/section_layout.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ui/app/components/main_panel/email_section.js b/ui/app/components/main_panel/email_section.js index fcfd36c..db7470d 100644 --- a/ui/app/components/main_panel/email_section.js +++ b/ui/app/components/main_panel/email_section.js @@ -18,7 +18,7 @@ export default class EmailSection extends React.Component { constructor(props) { super(props) this.state = { - status: 'unknown', // API produces: on, off, starting, stopping, failure + status: 'unknown', // API produces: on, off, starting, stopping, failed keys: null, // API produces: null, sync, generating, found message: null, expanded: false diff --git a/ui/app/components/main_panel/section_layout.js b/ui/app/components/main_panel/section_layout.js index e2f1ae1..1c06ab2 100644 --- a/ui/app/components/main_panel/section_layout.js +++ b/ui/app/components/main_panel/section_layout.js @@ -12,7 +12,7 @@ export default class SectionLayout extends React.Component { icon: null, // icon name buttons: null, // button content status: null, // must be one of: on, off, unknown, wait, disabled, - // starting, stopping, failure + // starting, stopping, failed header: null, // the first line content body: null, // expanded content message: null, // alert content @@ -39,7 +39,7 @@ export default class SectionLayout extends React.Component { status = "wait" } else if (status == "stopping") { status = "wait" - } else if (status == "failure") { + } else if (status == "failed") { status = "error" } |