This commit is contained in:
syuilo 2020-11-03 15:22:55 +09:00
parent 5ef4a52bbd
commit c3ae6f3a4a
25 changed files with 73 additions and 62 deletions

View file

@ -143,7 +143,7 @@ export default defineComponent({
os.post();
},
async onNotification(notification) {
onNotification(notification) {
if (this.$store.state.i.mutingNotificationTypes.includes(notification.type)) {
return;
}
@ -153,7 +153,7 @@ export default defineComponent({
id: notification.id
});
os.popup(await import('@/components/toast.vue'), {
os.popup(import('@/components/toast.vue'), {
notification
}, {}, 'closed');
}

View file

@ -42,8 +42,8 @@ export default defineComponent({
this.menu = [{
icon: faCog,
text: this.$t('notificationSetting'),
action: async () => {
os.popup(await import('@/components/notification-setting-window.vue'), {
action: () => {
os.popup(import('@/components/notification-setting-window.vue'), {
includingTypes: this.column.includingTypes,
}, {
done: async (res) => {

View file

@ -235,7 +235,7 @@ export default defineComponent({
}], e);
},
async onNotification(notification) {
onNotification(notification) {
if (this.$store.state.i.mutingNotificationTypes.includes(notification.type)) {
return;
}
@ -244,7 +244,7 @@ export default defineComponent({
id: notification.id
});
os.popup(await import('@/components/toast.vue'), {
os.popup(import('@/components/toast.vue'), {
notification
}, {}, 'closed');
}

View file

@ -95,7 +95,7 @@ export default defineComponent({
if (window._scroll) window._scroll();
},
async onNotification(notification) {
onNotification(notification) {
if (this.$store.state.i.mutingNotificationTypes.includes(notification.type)) {
return;
}
@ -104,7 +104,7 @@ export default defineComponent({
id: notification.id
});
os.popup(await import('@/components/toast.vue'), {
os.popup(import('@/components/toast.vue'), {
notification
}, {}, 'closed');
}