diff options
| author | pliablepixels <pliablepixels@gmail.com> | 2016-03-17 16:51:46 -0400 |
|---|---|---|
| committer | pliablepixels <pliablepixels@gmail.com> | 2016-03-17 16:51:46 -0400 |
| commit | 44147697b5a11094b6be69a7be2c7394eca80e0e (patch) | |
| tree | 2965928901add2080b4e078b1c2fde3ec07fcbfd /www | |
| parent | 098cf0cb9ec38f16cf90fc33ca32345068cf3dd2 (diff) | |
add profile name menu #133
Former-commit-id: e90058e728cd1688a4083e9ce3f5dd70ab9ea116
Diffstat (limited to 'www')
| -rw-r--r-- | www/index.html | 4 | ||||
| -rw-r--r-- | www/js/app.js | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/www/index.html b/www/index.html index 20b68cd3..e0e16b1a 100644 --- a/www/index.html +++ b/www/index.html @@ -210,10 +210,14 @@ </ion-item> <ion-item nav-clear menu-close href="#/login"> + <span style="float:right;margin-top:-18px;background-color:#444444;color:#fff;font-size:11px;opacity:0.7;width:90px;border-radius: 0px 0px 5px 5px;:text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block"> {{$root.getProfileName();}} </span> + + <span class=" item-icon-left"> <i class="icon ion-person"></i> </span> ZM Settings + </ion-item> <ion-item nav-clear menu-close href="#/devoptions"> diff --git a/www/js/app.js b/www/js/app.js index 298644c4..59d95815 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -727,7 +727,11 @@ angular.module('zmApp', [ }); - + $rootScope.getProfileName = function() + { + var ld = ZMDataModel.getLogin(); + return (ld.serverName || '(none)'); + }; //------------------------------------------------------------------ // doLogin() is the function that tries to login to ZM |
