diff --git a/framework/core/js/forum/src/components/RenameDiscussionModal.js b/framework/core/js/forum/src/components/RenameDiscussionModal.js index 2018c9636..177a39c05 100644 --- a/framework/core/js/forum/src/components/RenameDiscussionModal.js +++ b/framework/core/js/forum/src/components/RenameDiscussionModal.js @@ -24,13 +24,13 @@ export default class RenameDiscussionModal extends Modal { content() { return (
-
+
- +
{Button.component({ - className: 'Button Button--primary', + className: 'Button Button--primary Button--block', type: 'submit', loading: this.loading, children: app.translator.trans('core.forum.rename_discussion.submit_button') @@ -59,6 +59,9 @@ export default class RenameDiscussionModal extends Modal { } m.redraw(); this.hide(); + }).catch(() => { + this.loading = false; + m.redraw(); }); } else { this.hide();