From 86ab0f203da5e3e28e9b756822018bf6b5f7fbd4 Mon Sep 17 00:00:00 2001 From: fly_mc <me@flymc.cc> Date: Sun, 27 Oct 2024 21:08:34 +0800 Subject: [PATCH] can disable pop up notifications --- packages/frontend/src/pages/settings/general.vue | 1 + packages/frontend/src/store.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/pages/settings/general.vue b/packages/frontend/src/pages/settings/general.vue index e2ad2f379..d8079c807 100644 --- a/packages/frontend/src/pages/settings/general.vue +++ b/packages/frontend/src/pages/settings/general.vue @@ -100,6 +100,7 @@ SPDX-License-Identifier: AGPL-3.0-only <option value="rightTop"><i class="ti ti-align-box-right-top"></i> {{ i18n.ts.rightTop }}</option> <option value="leftBottom"><i class="ti ti-align-box-left-bottom"></i> {{ i18n.ts.leftBottom }}</option> <option value="rightBottom"><i class="ti ti-align-box-right-bottom"></i> {{ i18n.ts.rightBottom }}</option> + <option value=""><i class="ti ti-close"></i> {{ i18n.ts.close }}</option> </MkRadios> <MkRadios v-model="notificationStackAxis"> diff --git a/packages/frontend/src/store.ts b/packages/frontend/src/store.ts index b56ee3466..020a2487a 100644 --- a/packages/frontend/src/store.ts +++ b/packages/frontend/src/store.ts @@ -392,7 +392,7 @@ export const defaultStore = markRaw(new Storage('base', { }, notificationPosition: { where: 'device', - default: 'rightBottom' as 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom', + default: 'rightBottom' as 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom' | null, }, notificationStackAxis: { where: 'device',