mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 19:10:07 -03:30
disabled toggle for replace/revert button for auditor user
This commit is contained in:
parent
d0efa67845
commit
8df3c6e901
@ -41,6 +41,10 @@ function BaseInputController (strings) {
|
||||
|
||||
form.register(type, scope);
|
||||
|
||||
if (scope.form && scope.form.disabled) {
|
||||
scope.state._enableToggle = false;
|
||||
}
|
||||
|
||||
vm.validate = () => {
|
||||
let isValid = true;
|
||||
let message = '';
|
||||
@ -104,6 +108,9 @@ function BaseInputController (strings) {
|
||||
scope.state._placeholder = '';
|
||||
vm.check();
|
||||
}
|
||||
if (scope.form && scope.form.disabled) {
|
||||
scope.state._enableToggle = false;
|
||||
}
|
||||
};
|
||||
|
||||
vm.togglePromptOnLaunch = () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user