harbor/static/ng/resources/js/components/user/toggle-admin.directive.html
2016-05-13 18:48:06 +08:00

2 lines
216 B
HTML

<button ng-show="vm.isAdmin" class="btn btn-success" ng-click="vm.toggle()">// 'button_on' | tr //</button>
<button ng-show="!vm.isAdmin" class="btn btn-danger" ng-click="vm.toggle()">// 'button_off' | tr //</button>