fix: provide feedback when marking all notifs as read

See also https://github.com/misskey-dev/misskey/issues/8653
This commit is contained in:
Johann150 2022-07-30 23:26:32 +02:00
parent 10bf05563b
commit dc9bfff337
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -21,15 +21,15 @@ import { i18n } from '@/i18n';
import { definePageMetadata } from '@/scripts/page-metadata'; import { definePageMetadata } from '@/scripts/page-metadata';
async function readAllUnreadNotes() { async function readAllUnreadNotes() {
await os.api('i/read-all-unread-notes'); await os.apiWithDialog('i/read-all-unread-notes');
} }
async function readAllMessagingMessages() { async function readAllMessagingMessages() {
await os.api('i/read-all-messaging-messages'); await os.apiWithDialog('i/read-all-messaging-messages');
} }
async function readAllNotifications() { async function readAllNotifications() {
await os.api('notifications/mark-all-as-read'); await os.apiWithDialog('notifications/mark-all-as-read');
} }
function configure() { function configure() {