From 39a805929dab586ff77752e86f86a980535f97ef Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Tue, 29 Aug 2017 11:00:11 -0400 Subject: [bug] change status on ui too --- ui/app/components/main_panel/email_section.js | 2 +- ui/app/components/main_panel/section_layout.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'ui') diff --git a/ui/app/components/main_panel/email_section.js b/ui/app/components/main_panel/email_section.js index fcfd36cf..db7470dc 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 e2f1ae17..1c06ab28 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" } -- cgit v1.2.3