DEV: remove dead export archive action (#25932)

This commit is contained in:
Kris 2024-03-08 10:23:14 -05:00 committed by GitHub
parent 32e1eda3fa
commit d46e247973
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 14 deletions

View File

@ -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
@ -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(),
});
},
},
});