mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-14 03:58:36 -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();
|
||||
};
|
||||
|
||||
|
||||
@@ -79,6 +79,8 @@ function AtInputLookupController (baseInputController, $q, $state, $stateParams)
|
||||
};
|
||||
|
||||
vm.search = () => {
|
||||
scope.state._touched = true;
|
||||
|
||||
return model.search({ [search.key]: scope.state._displayValue }, search.config)
|
||||
.then(found => {
|
||||
if (!found) {
|
||||
|
||||
Reference in New Issue
Block a user