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:
Jared Tabor 2014-12-16 01:22:22 -05:00
parent 283e4a2a96
commit feaee64706
2 changed files with 3 additions and 2 deletions

View File

@ -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",

View File

@ -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 += " >";