harbor/static/ng/resources/js/components/details/switch-roles.directive.html

5 lines
279 B
HTML

<ng-switch on="vm.editMode">
<span ng-switch-default>//vm.currentRole.name//</span>
<select ng-switch-when="true" ng-model="vm.currentRole" ng-options="role as role.name for role in vm.roles track by role.id" ng-click="vm.selectRole(vm.currentRole)">
</select>
</ng-switch>