From d72ac908f494949137aab525c42057b629e7a18a Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 21 Jul 2022 00:32:41 +0900 Subject: [PATCH] fix(client): some fixes --- packages/client/src/components/form/textarea.vue | 1 + packages/client/src/components/ui/window.vue | 1 + packages/client/src/router.ts | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/packages/client/src/components/form/textarea.vue b/packages/client/src/components/form/textarea.vue index cb502a422c..73633399de 100644 --- a/packages/client/src/components/form/textarea.vue +++ b/packages/client/src/components/form/textarea.vue @@ -168,6 +168,7 @@ export default defineComponent({ onInput, onKeydown, updated, + i18n, }; }, }); diff --git a/packages/client/src/components/ui/window.vue b/packages/client/src/components/ui/window.vue index 460cf7d597..758d4d47b6 100644 --- a/packages/client/src/components/ui/window.vue +++ b/packages/client/src/components/ui/window.vue @@ -170,6 +170,7 @@ function onHeaderMousedown(evt: MouseEvent) { beforeClickedAt = Date.now(); const main = rootEl; + if (main == null) return; if (!contains(main, document.activeElement)) main.focus(); diff --git a/packages/client/src/router.ts b/packages/client/src/router.ts index 573403c229..a8743416f4 100644 --- a/packages/client/src/router.ts +++ b/packages/client/src/router.ts @@ -141,6 +141,10 @@ export const routes = [{ path: '/webhook', name: 'webhook', component: page(() => import('./pages/settings/webhook.vue')), + }, { + path: '/deck', + name: 'deck', + component: page(() => import('./pages/settings/deck.vue')), }, { path: '/other', name: 'other',