mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 17:38:34 +08:00
UX: Show message if rebake fails (#16925)
Previously, errors would only be displayed in the developer console.
This commit is contained in:
parent
8fe3934856
commit
80bd971420
|
@ -300,7 +300,9 @@ const Post = RestModel.extend({
|
|||
},
|
||||
|
||||
rebake() {
|
||||
return ajax(`/posts/${this.id}/rebake`, { type: "PUT" });
|
||||
return ajax(`/posts/${this.id}/rebake`, { type: "PUT" }).catch(
|
||||
popupAjaxError
|
||||
);
|
||||
},
|
||||
|
||||
unhide() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user