Add read-only credential form depending on access

This commit is contained in:
gconsidine
2017-07-27 18:07:06 -04:00
parent bf42021a32
commit 6239df6778
8 changed files with 64 additions and 7 deletions
@@ -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) {