mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-15 06:58:37 -05:00
Add read-only credential form depending on access
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<button class="btn at-Button{{ fill }}--{{ color }}"
|
||||
ng-disabled="form.disabled || (type === 'save' && !form.isValid)"
|
||||
ng-disabled="type !== 'cancel' && (form.disabled || (type === 'save' && !form.isValid))"
|
||||
ng-click="action()">
|
||||
{{::text}}
|
||||
</button>
|
||||
|
||||
@@ -27,6 +27,8 @@ function AtFormController (eventService, strings) {
|
||||
form = _form_;
|
||||
modal = scope[scope.ns].modal;
|
||||
|
||||
vm.state.disabled = scope.state.disabled;
|
||||
|
||||
vm.setListeners();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user