From 582768a5e49edcdb95a61d5cb9e35363d2e5697e Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 3 Nov 2020 10:43:50 +0900 Subject: チャットリンクの挙動を改善 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/sidebar.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/client/sidebar.ts') diff --git a/src/client/sidebar.ts b/src/client/sidebar.ts index af1f68b0dc..4b7acb0a60 100644 --- a/src/client/sidebar.ts +++ b/src/client/sidebar.ts @@ -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', -- cgit v1.2.3-freya