aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/project-admin/links/views/DeletionModal.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/project-admin/links/views/DeletionModal.js')
-rw-r--r--server/sonar-web/src/main/js/apps/project-admin/links/views/DeletionModal.js21
1 files changed, 10 insertions, 11 deletions
diff --git a/server/sonar-web/src/main/js/apps/project-admin/links/views/DeletionModal.js b/server/sonar-web/src/main/js/apps/project-admin/links/views/DeletionModal.js
index b58fc289f99..232857084c5 100644
--- a/server/sonar-web/src/main/js/apps/project-admin/links/views/DeletionModal.js
+++ b/server/sonar-web/src/main/js/apps/project-admin/links/views/DeletionModal.js
@@ -25,23 +25,22 @@ import { parseError } from '../../../code/utils';
export default ModalForm.extend({
template: Template,
- onFormSubmit () {
+ onFormSubmit() {
ModalForm.prototype.onFormSubmit.apply(this, arguments);
this.disableForm();
deleteLink(this.options.link.id)
- .then(() => {
- this.trigger('done');
- this.destroy();
- })
- .catch(e => {
- parseError(e).then(msg => this.showSingleError(msg));
- this.enableForm();
- });
+ .then(() => {
+ this.trigger('done');
+ this.destroy();
+ })
+ .catch(e => {
+ parseError(e).then(msg => this.showSingleError(msg));
+ this.enableForm();
+ });
},
- serializeData () {
+ serializeData() {
return { link: this.options.link };
}
});
-