mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Remove unused code and translations
The edit PM button was removed in ecc8e559ec
This commit is contained in:
parent
b0ea919b09
commit
04b0035009
@ -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 Component from "@ember/component";
|
||||
import discourseComputed from "discourse-common/utils/decorators";
|
||||
@ -54,8 +54,6 @@ export default Component.extend({
|
||||
|
||||
inviteDisabled: or("topic.archived", "topic.closed", "topic.deleted"),
|
||||
|
||||
showEditOnFooter: and("topic.isPrivateMessage", "site.can_tag_pms"),
|
||||
|
||||
@discourseComputed("topic.message_archived")
|
||||
archiveIcon: (archived) => (archived ? "envelope" : "folder"),
|
||||
|
||||
|
@ -1,8 +1,4 @@
|
||||
import {
|
||||
acceptance,
|
||||
exists,
|
||||
query,
|
||||
} from "discourse/tests/helpers/qunit-helpers";
|
||||
import { acceptance, query } from "discourse/tests/helpers/qunit-helpers";
|
||||
import I18n from "I18n";
|
||||
import { test } from "qunit";
|
||||
import { visit } from "@ember/test-helpers";
|
||||
@ -10,15 +6,6 @@ import { visit } from "@ember/test-helpers";
|
||||
acceptance("Personal Message", function (needs) {
|
||||
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) {
|
||||
await visit("/t/pm-for-testing/12");
|
||||
|
||||
|
@ -2751,9 +2751,6 @@ en:
|
||||
move_to_inbox:
|
||||
title: "Move to Inbox"
|
||||
help: "Move message back to Inbox"
|
||||
edit_message:
|
||||
help: "Edit first post of the message"
|
||||
title: "Edit"
|
||||
defer:
|
||||
help: "Mark as unread"
|
||||
title: "Defer"
|
||||
|
Loading…
Reference in New Issue
Block a user