blob: 4adbd45552bca70584e6e0cf62352b3715836837 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import FormView from './form-view';
export default FormView.extend({
method: 'create',
prepareRequest: function () {
var that = this;
var url = baseUrl + '/api/qualitygates/create',
name = this.$('#quality-gate-form-name').val(),
options = {
url: url,
data: { name: name }
};
return this.sendRequest(options)
.done(function (r) {
var gate = that.addGate(r);
gate.trigger('select', gate);
});
}
});
|