mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 22:14:32 +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() {
|
rebake() {
|
||||||
return ajax(`/posts/${this.id}/rebake`, { type: "PUT" });
|
return ajax(`/posts/${this.id}/rebake`, { type: "PUT" }).catch(
|
||||||
|
popupAjaxError
|
||||||
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
unhide() {
|
unhide() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user