From fa2ec23ebcdb98f60eb21ff2540c821b6db92746 Mon Sep 17 00:00:00 2001 From: Penar Musaraj Date: Tue, 18 Oct 2022 13:58:55 -0400 Subject: [PATCH] DEV: Use `popupAjaxError` instead of bootbox (#153) --- .../discourse/controllers/admin-plugins-house-ads-show.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/assets/javascripts/discourse/controllers/admin-plugins-house-ads-show.js b/assets/javascripts/discourse/controllers/admin-plugins-house-ads-show.js index 15d1434..42bd26b 100644 --- a/assets/javascripts/discourse/controllers/admin-plugins-house-ads-show.js +++ b/assets/javascripts/discourse/controllers/admin-plugins-house-ads-show.js @@ -3,7 +3,6 @@ import { ajax } from "discourse/lib/ajax"; import { popupAjaxError } from "discourse/lib/ajax-error"; import { propertyNotEqual } from "discourse/lib/computed"; import { bufferedProperty } from "discourse/mixins/buffered-content"; -import bootbox from "bootbox"; import Controller, { inject as controller } from "@ember/controller"; import { not, or } from "@ember/object/computed"; @@ -91,7 +90,7 @@ export default Controller.extend(bufferedProperty("model"), { houseAds.removeObject(model); this.transitionToRoute("adminPlugins.houseAds.index"); }) - .catch(() => bootbox.alert(I18n.t("generic_error"))); + .catch(popupAjaxError); }, }, });