From 2a0253f079f9d8237743ea45f170bf7a9463a020 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Thu, 19 Dec 2024 23:38:36 +0900 Subject: [PATCH] fix --- packages/frontend/src/scripts/select-file.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/frontend/src/scripts/select-file.ts b/packages/frontend/src/scripts/select-file.ts index de38d9ddde..b57ad9ccef 100644 --- a/packages/frontend/src/scripts/select-file.ts +++ b/packages/frontend/src/scripts/select-file.ts @@ -96,8 +96,8 @@ function select(src: HTMLElement | EventTarget | null, opts?: { return new Promise((res, rej) => { const keepOriginal = ref(defaultStore.state.keepOriginalUploading); - const watermarkcanApplyWatermark = canApplyWatermark(defaultStore.reactiveState.watermarkConfig.value); - const useWatermark = ref(opts?.dontUseWatermark || !watermarkcanApplyWatermark ? false : defaultStore.state.useWatermark); + const watermarkCanApply = canApplyWatermark(defaultStore.reactiveState.watermarkConfig.value); + const useWatermark = ref(opts?.dontUseWatermark || !watermarkCanApply ? false : defaultStore.state.useWatermark); const menu: MenuItem[] = []; @@ -118,7 +118,7 @@ function select(src: HTMLElement | EventTarget | null, opts?: { menu.push({ type: 'switch', text: i18n.ts.useWatermark, - disabled: !watermarkcanApplyWatermark, + disabled: !watermarkCanApply, ref: useWatermark, }); }