(js) Use one-time bindings in ACLs and sidenav

This commit is contained in:
Francis Lachapelle
2017-05-18 15:40:11 -04:00
parent 28ae2fd58a
commit aee42f76f0
2 changed files with 9 additions and 9 deletions

View File

@@ -55,11 +55,11 @@
<sg-avatar-image class="md-avatar"
sg-email="user.c_email"
ng-disabled="user.inactive"
size="40">{{ user.$avatarIcon }}</sg-avatar-image>
size="40">{{ ::user.$avatarIcon }}</sg-avatar-image>
</div>
<div class="sg-tile-content">
<div class="sg-md-subhead"><div>{{user.$fullname()}}</div></div>
<div class="sg-md-body"><div>{{user.c_email}}</div></div>
<div class="sg-md-subhead"><div ng-bind="::user.$fullname()"><!-- username --></div></div>
<div class="sg-md-body"><div ng-bind="::user.c_email"><!-- email --></div></div>
</div>
<md-button class="md-icon-button md-secondary" type="button"
ng-click="acl.selectAllRights(user)"
@@ -102,7 +102,7 @@
<md-dialog-content class="md-default-theme md-bg md-warn md-padding sg-dialog-message ng-hide"
ng-show="acl.confirmation.showing">
<div>{{acl.confirmation.message}}</div>
<div ng-bind="acl.confirmation.message"><!-- message --></div>
</md-dialog-content>
<md-dialog-actions ng-show="acl.confirmation.showing">
<md-button ng-click="acl.selectedUser.$resetRights(true); acl.confirmation.showing = false">

View File

@@ -6,16 +6,16 @@
xmlns:label="OGo:label">
<md-toolbar class="sg-padded md-hue-2 md-tall" flex-none="flex-none">
<sg-avatar-image class="md-tile-left"
sg-email="activeUser.email"
sg-email="::activeUser.email"
size="40">person</sg-avatar-image>
<div layout="row" layout-align="space-between center">
<div style="overflow: hidden">
<p class="sg-md-title sg-no-wrap">{{activeUser.identification}}</p>
<p class="md-caption sg-no-wrap">{{activeUser.email}}</p>
<p class="sg-md-title sg-no-wrap" ng-bind="::activeUser.identification"><!-- username --></p>
<p class="md-caption sg-no-wrap" ng-bind="::activeUser.email"><!-- email --></p>
</div>
<md-button class="md-icon-button"
ng-hide="baseURL.endsWith('/Preferences')"
ng-href="{{activeUser.path.preferences}}">
ng-hide="::baseURL.endsWith('/Preferences')"
ng-href="{{::activeUser.path.preferences}}">
<md-icon>settings</md-icon>
<md-tooltip><var:string label:value="Preferences"/></md-tooltip>
</md-button>