Skip to content

Commit

Permalink
DEV: remove dead export archive action (#25932)
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomerobot committed Mar 8, 2024
1 parent 32e1eda commit d46e247
Showing 1 changed file with 1 addition and 14 deletions.
@@ -1,17 +1,13 @@
import Controller, { inject as controller } from "@ember/controller";
import { alias } from "@ember/object/computed";
import { service } from "@ember/service";
import { exportUserArchive } from "discourse/lib/export-csv";
import discourseComputed from "discourse-common/utils/decorators";
import I18n from "discourse-i18n";

export default Controller.extend({
dialog: service(),
currentUser: service(),
user: controller(),
userActionType: null,

canDownloadPosts: alias("user.viewingSelf"),

@discourseComputed("currentUser.draft_count")
draftLabel(count) {
return count > 0
Expand All @@ -25,13 +21,4 @@ export default Controller.extend({
? I18n.t("pending_posts.label_with_count", { count })
: I18n.t("pending_posts.label");
},

actions: {
exportUserArchive() {
this.dialog.yesNoConfirm({
message: I18n.t("user.download_archive.confirm"),
didConfirm: () => exportUserArchive(),
});
},
},
});

0 comments on commit d46e247

Please sign in to comment.