mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-11-01 23:55:58 +09:00
parent
a8cf67198f
commit
5d09b7e38b
@ -24,7 +24,7 @@ export default Vue.extend({
|
||||
const ok = window.confirm('%i18n:@read-all%');
|
||||
if (!ok) return;
|
||||
|
||||
(this as any).api('notifications/mark_as_read_all');
|
||||
(this as any).api('notifications/mark_all_as_read');
|
||||
},
|
||||
onFetched() {
|
||||
Progress.done();
|
||||
|
@ -7,7 +7,7 @@ import { publishMessagingIndexStream } from '../../../stream';
|
||||
import User from '../../../models/user';
|
||||
|
||||
/**
|
||||
* Mark as read message(s)
|
||||
* Mark messages as read
|
||||
*/
|
||||
export default (
|
||||
user: string | mongo.ObjectID,
|
||||
|
@ -5,7 +5,7 @@ import Mute from '../../../models/mute';
|
||||
import User from '../../../models/user';
|
||||
|
||||
/**
|
||||
* Mark as read notification(s)
|
||||
* Mark notifications as read
|
||||
*/
|
||||
export default (
|
||||
user: string | mongo.ObjectID,
|
||||
|
@ -96,7 +96,7 @@ export default (params: any, user: ILocalUser) => new Promise(async (res, rej) =
|
||||
// Serialize
|
||||
res(await Promise.all(notifications.map(notification => pack(notification))));
|
||||
|
||||
// Mark as read all
|
||||
// Mark all as read
|
||||
if (notifications.length > 0 && markAsRead) {
|
||||
read(user._id, notifications);
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ export default (params: any, user: ILocalUser) => new Promise(async (res, rej) =
|
||||
return;
|
||||
}
|
||||
|
||||
// Mark as read all
|
||||
// Mark all as read
|
||||
if (markAsRead) {
|
||||
read(user._id, recipient._id, messages);
|
||||
}
|
||||
|
@ -5,7 +5,7 @@ import User, { ILocalUser } from '../../../../models/user';
|
||||
export const meta = {
|
||||
desc: {
|
||||
ja: '全ての通知を既読にします。',
|
||||
en: 'Mark as read all notifications.'
|
||||
en: 'Mark all notifications as read.'
|
||||
},
|
||||
|
||||
requireCredential: true,
|
||||
@ -14,7 +14,7 @@ export const meta = {
|
||||
};
|
||||
|
||||
/**
|
||||
* Mark as read all notifications
|
||||
* Mark all notifications as read
|
||||
*/
|
||||
export default (params: any, user: ILocalUser) => new Promise(async (res, rej) => {
|
||||
// Update documents
|
Loading…
Reference in New Issue
Block a user