(js) Use more one-time bindings

This commit is contained in:
Francis Lachapelle
2017-06-27 22:24:07 -04:00
parent b0e0950d12
commit 3ce28b7316
+15 -15
View File
@@ -27,25 +27,25 @@
</div>
<div class="md-toolbar-tools sg-toolbar-group-last" layout="row" layout-align="end center">
<md-button class="md-icon-button"
ng-show="activeUser.path.calendar.length"
ng-disabled="baseURL.endsWith('/Calendar/')"
ng-show="::activeUser.path.calendar.length"
ng-disabled="::baseURL.endsWith('/Calendar/')"
var:ng-click="navButtonClick"
ng-href="{{activeUser.path.calendar}}">
ng-href="{{::activeUser.path.calendar}}">
<md-tooltip><var:string label:value="Calendar"/></md-tooltip>
<md-icon>event</md-icon>
</md-button>
<md-button class="md-icon-button"
ng-disabled="baseURL.endsWith('/Contacts/')"
ng-disabled="::baseURL.endsWith('/Contacts/')"
var:ng-click="navButtonClick"
ng-href="{{activeUser.path.contacts}}">
ng-href="{{::activeUser.path.contacts}}">
<md-icon>contacts</md-icon>
<md-tooltip><var:string label:value="Address Book"/></md-tooltip>
</md-button>
<md-button class="md-icon-button"
ng-show="activeUser.path.mail.length"
ng-show="::activeUser.path.mail.length"
ng-disabled="baseURL.endsWith('/Mail/')"
var:ng-click="navButtonClick"
ng-href="{{activeUser.path.mail}}">
ng-href="{{::activeUser.path.mail}}">
<md-icon>email</md-icon>
<var:if condition="userHasVacationEnabled">
<md-icon class="md-default-theme md-warn md-bg sg-icon--badge" label:aria-label="Vacation message is enabled">forward</md-icon>
@@ -53,26 +53,26 @@
<md-tooltip><var:string label:value="Mail"/></md-tooltip>
</md-button>
<md-button class="md-icon-button"
ng-disabled="baseURL.endsWith('/Administration/')"
ng-show="activeUser.isSuperUser"
ng-disabled="::baseURL.endsWith('/Administration/')"
ng-show="::activeUser.isSuperUser"
var:ng-click="navButtonClick"
ng-href="{{activeUser.path.administration}}">
ng-href="{{::activeUser.path.administration}}">
<md-icon>settings_applications</md-icon>
<md-tooltip><var:string label:value="Administration"/></md-tooltip>
</md-button>
<div class="hide-xs" style="width: 40px"
ng-show="activeUser.path.logoff.length"><!-- divider --></div>
ng-show="::activeUser.path.logoff.length"><!-- divider --></div>
<md-button class="md-icon-button"
ng-show="activeUser.path.help.length"
ng-href="{{activeUser.path.help}}"
ng-show="::activeUser.path.help.length"
ng-href="{{::activeUser.path.help}}"
target="_blank">
<md-icon>help_outline</md-icon>
<md-tooltip><var:string label:value="Help"/></md-tooltip>
</md-button>
<md-button class="md-icon-button"
ng-show="activeUser.path.logoff.length"
ng-show="::activeUser.path.logoff.length"
var:ng-click="navButtonClick"
ng-href="{{activeUser.path.logoff}}">
ng-href="{{::activeUser.path.logoff}}">
<md-icon>settings_power</md-icon>
<md-tooltip><var:string label:value="Disconnect"/></md-tooltip>
</md-button>