From 1dcf756d7883d11fd194f46b9424ebf6d8ae0bf8 Mon Sep 17 00:00:00 2001 From: chapoi <101828855+chapoi@users.noreply.github.com> Date: Tue, 21 May 2024 02:09:12 +0200 Subject: [PATCH] UX: shorten duration of bookmark toasties (#27085) --- .../javascripts/discourse/app/components/bookmark-menu.gjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/discourse/app/components/bookmark-menu.gjs b/app/assets/javascripts/discourse/app/components/bookmark-menu.gjs index afaeba1c646..d528a18b497 100644 --- a/app/assets/javascripts/discourse/app/components/bookmark-menu.gjs +++ b/app/assets/javascripts/discourse/app/components/bookmark-menu.gjs @@ -133,7 +133,7 @@ export default class BookmarkMenu extends Component { // a bookmark, it switches to the other Edit/Delete menu. this.quicksaved = true; this.toasts.success({ - duration: 3000, + duration: 1500, views: ["mobile"], data: { message: I18n.t("bookmarks.bookmarked_success") }, }); @@ -172,7 +172,7 @@ export default class BookmarkMenu extends Component { const response = await this.bookmarkManager.delete(); this.bookmarkManager.afterDelete(response, this.existingBookmark.id); this.toasts.success({ - duration: 3000, + duration: 1500, data: { icon: "trash-alt", message: I18n.t("bookmarks.deleted_bookmark_success"), @@ -201,7 +201,7 @@ export default class BookmarkMenu extends Component { try { await this.bookmarkManager.save(); this.toasts.success({ - duration: 3000, + duration: 1500, views: ["mobile"], data: { message: I18n.t("bookmarks.reminder_set_success") }, });