FIX: Handle errors when we show the edit user directory columns modal (#20986)

This commit is contained in:
Daniel Waterworth 2023-04-05 14:31:32 -05:00 committed by GitHub
parent 79c87b5003
commit cd6d47e012
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@ import Controller from "@ember/controller";
import ModalFunctionality from "discourse/mixins/modal-functionality"; import ModalFunctionality from "discourse/mixins/modal-functionality";
import { ajax } from "discourse/lib/ajax"; import { ajax } from "discourse/lib/ajax";
import EmberObject, { action } from "@ember/object"; 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"; import { reload } from "discourse/helpers/page-reloader";
const UP = "up"; const UP = "up";
@ -23,7 +23,7 @@ export default Controller.extend(ModalFunctionality, {
.map((c) => EmberObject.create(c)), .map((c) => EmberObject.create(c)),
}); });
}) })
.catch(extractError); .catch(popupAjaxError);
}, },
@action @action