1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-01 09:15:38 +02:00

チャットリンクの挙動を改善

This commit is contained in:
syuilo
2020-11-03 10:43:50 +09:00
parent 1852d1cc6f
commit 582768a5e4
3 changed files with 20 additions and 24 deletions

View File

@@ -4,9 +4,6 @@ import { computed } from 'vue';
import { store } from '@/store';
import { deckmode } from '@/config';
import { search } from '@/scripts/search';
import { popout } from '@/scripts/popout';
import { router } from '@/router';
import * as os from '@/os';
export const sidebarDef = {
notifications: {
@@ -21,13 +18,7 @@ export const sidebarDef = {
icon: faComments,
show: computed(() => store.getters.isSignedIn),
indicated: computed(() => store.getters.isSignedIn && store.state.i.hasUnreadMessagingMessage),
action: () => {
switch (store.state.device.chatOpenBehavior) {
case 'window': { os.pageWindow('/my/messaging'); break; }
case 'popout': { popout('/my/messaging'); break; }
default: { router.push('/my/messaging'); break; }
}
}
to: '/my/messaging',
},
drive: {
title: 'drive',