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

6 lines
305 B
HTML

<ng-switch on="vm.editMode">
<span ng-switch-default>//vm.currentRole.name//</span>
<select ng-switch-when="true">
<option value="//role.id//" ng-selected="//role.id == vm.currentRole.id//" ng-click="vm.selectRole(role)" ng-repeat="role in vm.roles">//role.name//</option>
</select>
</ng-switch>