mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
FIX: Rename all instances of bookmarkWithReminder to just bookmark (#9579)
* Rename all instances of bookmarkWithReminder and bookmark_with_reminder to just bookmark * Delete old bookmark code at the same time * Add migration to remove the bookmarkWithReminder post menu item if people have it set in site settings
This commit is contained in:
@ -532,15 +532,12 @@ widgetTest("can't bookmark", {
|
||||
|
||||
widgetTest("bookmark", {
|
||||
template:
|
||||
'{{mount-widget widget="post" args=args toggleBookmarkWithReminder=(action "toggleBookmarkWithReminder")}}',
|
||||
'{{mount-widget widget="post" args=args toggleBookmark=(action "toggleBookmark")}}',
|
||||
beforeEach() {
|
||||
const args = { canBookmark: true };
|
||||
|
||||
this.set("args", args);
|
||||
this.on(
|
||||
"toggleBookmarkWithReminder",
|
||||
() => (args.bookmarked_with_reminder = true)
|
||||
);
|
||||
this.on("toggleBookmark", () => (args.bookmarked = true));
|
||||
},
|
||||
async test(assert) {
|
||||
assert.equal(find(".post-menu-area .bookmark").length, 1);
|
||||
|
Reference in New Issue
Block a user