mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02: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 }}",
|
awToolTip: "{{ scm_update_tooltip }}",
|
||||||
dataTipWatch: "scm_update_tooltip",
|
dataTipWatch: "scm_update_tooltip",
|
||||||
ngClass: "scm_type_class",
|
ngClass: "scm_type_class",
|
||||||
dataPlacement: 'top'
|
dataPlacement: 'top',
|
||||||
|
ngDisabled: "scm_type.value === 'manual' "
|
||||||
},
|
},
|
||||||
stream: {
|
stream: {
|
||||||
'class': "btn-primary btn-xs activity-btn",
|
'class': "btn-primary btn-xs activity-btn",
|
||||||
|
|||||||
@@ -219,7 +219,7 @@ angular.module('GeneratorHelpers', [])
|
|||||||
html += (btn.dataTitle) ? Attr(btn, 'dataTitle') : "";
|
html += (btn.dataTitle) ? Attr(btn, 'dataTitle') : "";
|
||||||
html += (btn.ngShow) ? Attr(btn, 'ngShow') : "";
|
html += (btn.ngShow) ? Attr(btn, 'ngShow') : "";
|
||||||
html += (btn.ngHide) ? Attr(btn, 'ngHide') : "";
|
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.ngClass) ? Attr(btn, 'ngClass') : "";
|
||||||
html += (btn.awTipPlacement) ? Attr(btn, 'awTipPlacement') : "";
|
html += (btn.awTipPlacement) ? Attr(btn, 'awTipPlacement') : "";
|
||||||
html += " >";
|
html += " >";
|
||||||
|
|||||||
Reference in New Issue
Block a user