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