Skip to content

Commit

Permalink
fix(status): add no module status
Browse files Browse the repository at this point in the history
  • Loading branch information
zack9433 committed Apr 8, 2016
1 parent 1a2877e commit a7992de
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 6 deletions.
11 changes: 9 additions & 2 deletions app/component/form/component.tpl.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
<script type ="text/ng-template" id="sanji-cellular-form.tpl.html">

<md-tabs md-dynamic-height md-border-bottom>
<div ng-if="0 === vm.tabs.length" layout="column" layout-align="center center">
<div flex>
<ng-md-icon icon="portable_wifi_off" size="100" style="width: 100px; height: 100px;"></ng-md-icon>
</div>
<md-subheader class="md-warn">
<span translate="CELLULAR_INFO_NO_MODULE_MSG"></span>
</md-subheader>
</div>
<md-tabs ng-if="0 < vm.tabs.length" md-dynamic-height md-border-bottom>
<md-tab ng-repeat="tab in vm.tabs track by $index" label="{{::tab.title}}">
<form ng-submit="vm.save(tab)"
role="form" layout="column" layout-padding novalidate>
Expand Down
10 changes: 9 additions & 1 deletion app/component/info/component.tpl.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<script type ="text/ng-template" id="sanji-cellular-info.tpl.html">
<md-tabs md-dynamic-height md-border-bottom>
<div ng-if="0 === vm.tabs.length" layout="column" layout-align="center center">
<div flex>
<ng-md-icon icon="portable_wifi_off" size="100" style="width: 100px; height: 100px;"></ng-md-icon>
</div>
<md-subheader class="md-warn">
<span translate="CELLULAR_INFO_NO_MODULE_MSG"></span>
</md-subheader>
</div>
<md-tabs md-dynamic-height md-border-bottom ng-if="0 < vm.tabs.length">
<md-tab ng-repeat="tab in vm.tabs track by $index"
label="{{::tab.content.name}}">
<cellular-signal signal="{{tab.content.signal}}"></cellular-signal>
Expand Down
3 changes: 2 additions & 1 deletion app/component/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@
"CELLULAR_INFO_STATUS": "Status",
"CELLULAR_INFO_TARGET_HOST": "Target Host",
"CELLULAR_INFO_PING_INTERVAL": "Ping Interval",
"CELLULAR_SIGNAL_CHART_TITLE": "Profile Strength Meter"
"CELLULAR_SIGNAL_CHART_TITLE": "Profile Strength Meter",
"CELLULAR_INFO_NO_MODULE_MSG": "Please insert cellular module."
}
3 changes: 2 additions & 1 deletion app/component/lang/zh-tw.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@
"CELLULAR_INFO_STATUS": "狀態",
"CELLULAR_INFO_TARGET_HOST": "目標主機",
"CELLULAR_INFO_PING_INTERVAL": "Ping 間隔",
"CELLULAR_SIGNAL_CHART_TITLE": "訊號強度圖"
"CELLULAR_SIGNAL_CHART_TITLE": "訊號強度圖",
"CELLULAR_INFO_NO_MODULE_MSG": "請插入 Cellular 模組"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"expose-loader": "~0.7.1",
"extract-text-webpack-plugin": "~1.0.1",
"file-loader": "~0.8.5",
"ghooks": "~1.0.3",
"ghooks": "~1.2.0",
"html-webpack-plugin": "~1.7.0",
"isparta-loader": "~2.0.0",
"istanbul": "~0.4.2",
Expand Down

0 comments on commit a7992de

Please sign in to comment.