mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
FIX: Handle errors when we show the edit user directory columns modal (#20986)
This commit is contained in:
parent
79c87b5003
commit
cd6d47e012
@ -2,7 +2,7 @@ import Controller from "@ember/controller";
|
||||
import ModalFunctionality from "discourse/mixins/modal-functionality";
|
||||
import { ajax } from "discourse/lib/ajax";
|
||||
import EmberObject, { action } from "@ember/object";
|
||||
import { extractError } from "discourse/lib/ajax-error";
|
||||
import { extractError, popupAjaxError } from "discourse/lib/ajax-error";
|
||||
import { reload } from "discourse/helpers/page-reloader";
|
||||
|
||||
const UP = "up";
|
||||
@ -23,7 +23,7 @@ export default Controller.extend(ModalFunctionality, {
|
||||
.map((c) => EmberObject.create(c)),
|
||||
});
|
||||
})
|
||||
.catch(extractError);
|
||||
.catch(popupAjaxError);
|
||||
},
|
||||
|
||||
@action
|
||||
|
Loading…
Reference in New Issue
Block a user