mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: post mover validation color and message (#15688)
When the record is not saved, we should display a proper message. One potential reason can be plugins for example discourse-calendar is specifying that only first post can contain event
This commit is contained in:
committed by
GitHub
parent
3da6f6b717
commit
bb01563682
@@ -169,7 +169,7 @@ export default Controller.extend(ModalFunctionality, {
|
||||
DiscourseURL.routeTo(result.url);
|
||||
})
|
||||
.catch((xhr) => {
|
||||
this.flash(extractError(xhr, I18n.t("topic.move_to.error")));
|
||||
this.flash(extractError(xhr, I18n.t("topic.move_to.error")), "error");
|
||||
})
|
||||
.finally(() => {
|
||||
this.set("saving", false);
|
||||
|
||||
Reference in New Issue
Block a user