Skip to content

A platform for community discussion. Free, open, simple.

UX: Show message if rebake fails (#16925)

David Taylor80bd971420e7
diff --git a/app/assets/javascripts/discourse/app/models/post.js b/app/assets/javascripts/discourse/app/models/post.js
index a0033455561..25a8f401686 100644
--- a/app/assets/javascripts/discourse/app/models/post.js
+++ b/app/assets/javascripts/discourse/app/models/post.js
@@ -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() {