in submit-rules/gr-simple-submit-rules-repo-config.js [166:188]
_handleSaveRepoConfig() {
this._loading = true;
return this._pluginRestApi()
.put(this._endpointUrl(), this._repoConfig)
.then(config => {
if (!config) {
return Promise.resolve();
}
this.dispatchEvent(
new CustomEvent('show-alert', {
detail: {
message: 'Simple submit rules: configuration updated.',
},
bubbles: true,
})
);
this.set('_repoConfig', config);
this._loading = false;
this._configChanged = false;
});
}