From 9d301349ab434dc744546918fe026d50485a0797 Mon Sep 17 00:00:00 2001 From: elijah Date: Mon, 24 Apr 2017 00:53:41 -0700 Subject: [feat] usable vpn ui --- ui/app/components/main_panel/section_layout.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'ui/app/components/main_panel/section_layout.js') diff --git a/ui/app/components/main_panel/section_layout.js b/ui/app/components/main_panel/section_layout.js index 3b06d681..e2f1ae17 100644 --- a/ui/app/components/main_panel/section_layout.js +++ b/ui/app/components/main_panel/section_layout.js @@ -16,6 +16,7 @@ export default class SectionLayout extends React.Component { header: null, // the first line content body: null, // expanded content message: null, // alert content + error: null, // error content onExpand: null, // callback className: "", style: {} @@ -55,9 +56,13 @@ export default class SectionLayout extends React.Component { ) } if (status) { + let className = 'status' + if (status == 'wait') { + className = 'status spin' + } statusIcon = ( -
- +
+
) } @@ -79,6 +84,7 @@ export default class SectionLayout extends React.Component { body = (
{this.props.message} + {this.props.error} {this.props.body}
) -- cgit v1.2.3