DEV: remove dead export archive action (#25932)
This commit is contained in:
parent
32e1eda3fa
commit
d46e247973
|
@ -1,17 +1,13 @@
|
||||||
import Controller, { inject as controller } from "@ember/controller";
|
import Controller, { inject as controller } from "@ember/controller";
|
||||||
import { alias } from "@ember/object/computed";
|
|
||||||
import { service } from "@ember/service";
|
import { service } from "@ember/service";
|
||||||
import { exportUserArchive } from "discourse/lib/export-csv";
|
|
||||||
import discourseComputed from "discourse-common/utils/decorators";
|
import discourseComputed from "discourse-common/utils/decorators";
|
||||||
import I18n from "discourse-i18n";
|
import I18n from "discourse-i18n";
|
||||||
|
|
||||||
export default Controller.extend({
|
export default Controller.extend({
|
||||||
dialog: service(),
|
currentUser: service(),
|
||||||
user: controller(),
|
user: controller(),
|
||||||
userActionType: null,
|
userActionType: null,
|
||||||
|
|
||||||
canDownloadPosts: alias("user.viewingSelf"),
|
|
||||||
|
|
||||||
@discourseComputed("currentUser.draft_count")
|
@discourseComputed("currentUser.draft_count")
|
||||||
draftLabel(count) {
|
draftLabel(count) {
|
||||||
return count > 0
|
return count > 0
|
||||||
|
@ -25,13 +21,4 @@ export default Controller.extend({
|
||||||
? I18n.t("pending_posts.label_with_count", { count })
|
? I18n.t("pending_posts.label_with_count", { count })
|
||||||
: I18n.t("pending_posts.label");
|
: I18n.t("pending_posts.label");
|
||||||
},
|
},
|
||||||
|
|
||||||
actions: {
|
|
||||||
exportUserArchive() {
|
|
||||||
this.dialog.yesNoConfirm({
|
|
||||||
message: I18n.t("user.download_archive.confirm"),
|
|
||||||
didConfirm: () => exportUserArchive(),
|
|
||||||
});
|
|
||||||
},
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue