diff options
author | elijah <elijah@riseup.net> | 2017-04-24 00:53:41 -0700 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2017-04-24 11:12:26 +0200 |
commit | 9d301349ab434dc744546918fe026d50485a0797 (patch) | |
tree | 802bec24bb446c9ed3af11f7ccfcd9793250b070 /ui/app/components/main_panel/section_layout.js | |
parent | 2976cf11e451f1086d98eae20bdfb0fffa87abb0 (diff) |
[feat] usable vpn ui
Diffstat (limited to 'ui/app/components/main_panel/section_layout.js')
-rw-r--r-- | ui/app/components/main_panel/section_layout.js | 10 |
1 files changed, 8 insertions, 2 deletions
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 = ( - <div className="status"> - <img src={'img/' + status + '.svg' } /> + <div className={className}> + <img width="24px" height="24px" src={'img/' + status + '.svg' } /> </div> ) } @@ -79,6 +84,7 @@ export default class SectionLayout extends React.Component { body = ( <div className="body-row"> {this.props.message} + {this.props.error} {this.props.body} </div> ) |