mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 19:21:06 -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:
@@ -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 += " >";
|
||||
|
||||
Reference in New Issue
Block a user