UX: shorten duration of bookmark toasties (#27085)

This commit is contained in:
chapoi 2024-05-21 02:09:12 +02:00 committed by GitHub
parent 5c09792f79
commit 1dcf756d78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -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") },
});