mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 10:57:04 +08:00
UX: remove edit PM button
Edit PM button leads to confusion and is uneeded
This commit is contained in:
parent
c8370b9c78
commit
ecc8e559ec
|
@ -7,7 +7,6 @@ const SHARE_PRIORITY = 1000;
|
|||
const BOOKMARK_PRIORITY = 900;
|
||||
const ARCHIVE_PRIORITY = 800;
|
||||
const FLAG_PRIORITY = 700;
|
||||
const EDIT_MESSAGE_PRIORITY = 600;
|
||||
const DEFER_PRIORITY = 500;
|
||||
|
||||
export default {
|
||||
|
@ -166,23 +165,6 @@ export default {
|
|||
}
|
||||
});
|
||||
|
||||
registerTopicFooterButton({
|
||||
id: "edit-message",
|
||||
priority: EDIT_MESSAGE_PRIORITY,
|
||||
icon: "pencil-alt",
|
||||
label: "topic.edit_message.title",
|
||||
title: "topic.edit_message.help",
|
||||
action: "editFirstPost",
|
||||
classNames: ["edit-message"],
|
||||
dependentKeys: ["editFirstPost", "showEditOnFooter"],
|
||||
dropdown() {
|
||||
return this.site.mobileView && this.get("topic.isPrivateMessage");
|
||||
},
|
||||
displayed() {
|
||||
return this.showEditOnFooter;
|
||||
}
|
||||
});
|
||||
|
||||
registerTopicFooterButton({
|
||||
id: "defer",
|
||||
icon: "circle",
|
||||
|
|
|
@ -24,17 +24,3 @@ QUnit.test("suggested messages", async assert => {
|
|||
I18n.t("suggested_topics.pm_title")
|
||||
);
|
||||
});
|
||||
|
||||
acceptance("Personal Message Tagging", {
|
||||
loggedIn: true,
|
||||
site: { can_tag_pms: true }
|
||||
});
|
||||
|
||||
QUnit.test("show footer edit button", async assert => {
|
||||
await visit("/t/pm-for-testing/12");
|
||||
|
||||
assert.ok(
|
||||
exists(".edit-message"),
|
||||
"shows edit first post button on footer when PM tagging is enabled"
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user