mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: remove edit PM button
Edit PM button leads to confusion and is uneeded
This commit is contained in:
@@ -7,7 +7,6 @@ const SHARE_PRIORITY = 1000;
|
|||||||
const BOOKMARK_PRIORITY = 900;
|
const BOOKMARK_PRIORITY = 900;
|
||||||
const ARCHIVE_PRIORITY = 800;
|
const ARCHIVE_PRIORITY = 800;
|
||||||
const FLAG_PRIORITY = 700;
|
const FLAG_PRIORITY = 700;
|
||||||
const EDIT_MESSAGE_PRIORITY = 600;
|
|
||||||
const DEFER_PRIORITY = 500;
|
const DEFER_PRIORITY = 500;
|
||||||
|
|
||||||
export default {
|
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({
|
registerTopicFooterButton({
|
||||||
id: "defer",
|
id: "defer",
|
||||||
icon: "circle",
|
icon: "circle",
|
||||||
|
|||||||
@@ -24,17 +24,3 @@ QUnit.test("suggested messages", async assert => {
|
|||||||
I18n.t("suggested_topics.pm_title")
|
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"
|
|
||||||
);
|
|
||||||
});
|
|
||||||
|
|||||||
Reference in New Issue
Block a user