Merge pull request #2170 from Haokun-Chen/1890

disabled toggle for replace/revert button for auditor user
This commit is contained in:
Haokun Chen 2018-06-18 09:47:02 -04:00 committed by GitHub
commit 3df8a1df8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = () => {