mirror of
https://github.com/ansible/awx.git
synced 2026-02-17 11:10:03 -03:30
Merge pull request #2170 from Haokun-Chen/1890
disabled toggle for replace/revert button for auditor user
This commit is contained in:
@@ -41,6 +41,10 @@ function BaseInputController (strings) {
|
|||||||
|
|
||||||
form.register(type, scope);
|
form.register(type, scope);
|
||||||
|
|
||||||
|
if (scope.form && scope.form.disabled) {
|
||||||
|
scope.state._enableToggle = false;
|
||||||
|
}
|
||||||
|
|
||||||
vm.validate = () => {
|
vm.validate = () => {
|
||||||
let isValid = true;
|
let isValid = true;
|
||||||
let message = '';
|
let message = '';
|
||||||
@@ -104,6 +108,9 @@ function BaseInputController (strings) {
|
|||||||
scope.state._placeholder = '';
|
scope.state._placeholder = '';
|
||||||
vm.check();
|
vm.check();
|
||||||
}
|
}
|
||||||
|
if (scope.form && scope.form.disabled) {
|
||||||
|
scope.state._enableToggle = false;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
vm.togglePromptOnLaunch = () => {
|
vm.togglePromptOnLaunch = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user