'change': 'render'
+ ui:
+ deleteButton: '#quality-gate-delete'
+
+
events:
'click #quality-gate-rename': 'renameQualityGate'
'click #quality-gate-copy': 'copyQualityGate'
- 'click #quality-gate-delete': 'deleteQualityGate'
+ 'click @ui.deleteButton': 'deleteQualityGate'
'click #quality-gate-set-as-default': 'setAsDefault'
'click #quality-gate-unset-as-default': 'unsetAsDefault'
@hideSpinner()
.done =>
@options.app.deleteQualityGate @model.id
+ else
+ @ui.deleteButton.blur()
changeDefault: (set) ->