mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 19:30:39 -03:30
Made SCM update button disabled on edit projects
On the edits project page I disabled the button if the SCM type is manual.
This commit is contained in:
parent
283e4a2a96
commit
feaee64706
@ -32,7 +32,8 @@ angular.module('ProjectFormDefinition', ['SchedulesListDefinition'])
|
||||
awToolTip: "{{ scm_update_tooltip }}",
|
||||
dataTipWatch: "scm_update_tooltip",
|
||||
ngClass: "scm_type_class",
|
||||
dataPlacement: 'top'
|
||||
dataPlacement: 'top',
|
||||
ngDisabled: "scm_type.value === 'manual' "
|
||||
},
|
||||
stream: {
|
||||
'class': "btn-primary btn-xs activity-btn",
|
||||
|
||||
@ -219,7 +219,7 @@ angular.module('GeneratorHelpers', [])
|
||||
html += (btn.dataTitle) ? Attr(btn, 'dataTitle') : "";
|
||||
html += (btn.ngShow) ? Attr(btn, 'ngShow') : "";
|
||||
html += (btn.ngHide) ? Attr(btn, 'ngHide') : "";
|
||||
html += (btn.ngDisabled) ? Attr(btn, 'ngHide') : "";
|
||||
html += (btn.ngDisabled) ? Attr(btn, 'ngDisabled') : "";
|
||||
html += (btn.ngClass) ? Attr(btn, 'ngClass') : "";
|
||||
html += (btn.awTipPlacement) ? Attr(btn, 'awTipPlacement') : "";
|
||||
html += " >";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user