UX: Show message if rebake fails (#16925)

Previously, errors would only be displayed in the developer console.
This commit is contained in:
David Taylor 2022-05-27 10:39:29 +01:00 committed by GitHub
parent 8fe3934856
commit 80bd971420
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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() {