DEV: Remove unused code and translations

The edit PM button was removed in ecc8e559ec
This commit is contained in:
Gerhard Schlager 2022-11-09 13:53:47 +01:00 committed by Gerhard Schlager
parent b0ea919b09
commit 04b0035009
3 changed files with 2 additions and 20 deletions

View File

@ -1,4 +1,4 @@
import { alias, and, or } from "@ember/object/computed"; import { alias, or } from "@ember/object/computed";
import { computed } from "@ember/object"; import { computed } from "@ember/object";
import Component from "@ember/component"; import Component from "@ember/component";
import discourseComputed from "discourse-common/utils/decorators"; import discourseComputed from "discourse-common/utils/decorators";
@ -54,8 +54,6 @@ export default Component.extend({
inviteDisabled: or("topic.archived", "topic.closed", "topic.deleted"), inviteDisabled: or("topic.archived", "topic.closed", "topic.deleted"),
showEditOnFooter: and("topic.isPrivateMessage", "site.can_tag_pms"),
@discourseComputed("topic.message_archived") @discourseComputed("topic.message_archived")
archiveIcon: (archived) => (archived ? "envelope" : "folder"), archiveIcon: (archived) => (archived ? "envelope" : "folder"),

View File

@ -1,8 +1,4 @@
import { import { acceptance, query } from "discourse/tests/helpers/qunit-helpers";
acceptance,
exists,
query,
} from "discourse/tests/helpers/qunit-helpers";
import I18n from "I18n"; import I18n from "I18n";
import { test } from "qunit"; import { test } from "qunit";
import { visit } from "@ember/test-helpers"; import { visit } from "@ember/test-helpers";
@ -10,15 +6,6 @@ import { visit } from "@ember/test-helpers";
acceptance("Personal Message", function (needs) { acceptance("Personal Message", function (needs) {
needs.user(); needs.user();
test("footer edit button", async function (assert) {
await visit("/t/pm-for-testing/12");
assert.ok(
!exists(".edit-message"),
"does not show edit first post button on footer by default"
);
});
test("suggested messages", async function (assert) { test("suggested messages", async function (assert) {
await visit("/t/pm-for-testing/12"); await visit("/t/pm-for-testing/12");

View File

@ -2751,9 +2751,6 @@ en:
move_to_inbox: move_to_inbox:
title: "Move to Inbox" title: "Move to Inbox"
help: "Move message back to Inbox" help: "Move message back to Inbox"
edit_message:
help: "Edit first post of the message"
title: "Edit"
defer: defer:
help: "Mark as unread" help: "Mark as unread"
title: "Defer" title: "Defer"