mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 04:42:55 +08:00
FIX: Rate limits weren't being showing for action summary errors
This commit is contained in:
parent
5148c48170
commit
94ca9ed11f
|
@ -1,4 +1,7 @@
|
|||
Discourse.ActionSummary = Discourse.Model.extend({
|
||||
import RestModel from 'discourse/models/rest';
|
||||
import { popupAjaxError } from 'discourse/lib/ajax-error';
|
||||
|
||||
export default RestModel.extend({
|
||||
|
||||
// Description for the action
|
||||
description: function() {
|
||||
|
@ -84,10 +87,9 @@ Discourse.ActionSummary = Discourse.Model.extend({
|
|||
if (!self.get('flagTopic')) {
|
||||
return post.updateActionsSummary(result);
|
||||
}
|
||||
}).catch(function (error) {
|
||||
}).catch(function(error) {
|
||||
popupAjaxError(error);
|
||||
self.removeAction();
|
||||
var message = $.parseJSON(error.responseText).errors;
|
||||
bootbox.alert(message);
|
||||
});
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user