mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-01-11 01:00:07 +09:00
fix
This commit is contained in:
parent
d33c9ba459
commit
2a0253f079
@ -96,8 +96,8 @@ function select(src: HTMLElement | EventTarget | null, opts?: {
|
|||||||
return new Promise((res, rej) => {
|
return new Promise((res, rej) => {
|
||||||
const keepOriginal = ref(defaultStore.state.keepOriginalUploading);
|
const keepOriginal = ref(defaultStore.state.keepOriginalUploading);
|
||||||
|
|
||||||
const watermarkcanApplyWatermark = canApplyWatermark(defaultStore.reactiveState.watermarkConfig.value);
|
const watermarkCanApply = canApplyWatermark(defaultStore.reactiveState.watermarkConfig.value);
|
||||||
const useWatermark = ref(opts?.dontUseWatermark || !watermarkcanApplyWatermark ? false : defaultStore.state.useWatermark);
|
const useWatermark = ref(opts?.dontUseWatermark || !watermarkCanApply ? false : defaultStore.state.useWatermark);
|
||||||
|
|
||||||
const menu: MenuItem[] = [];
|
const menu: MenuItem[] = [];
|
||||||
|
|
||||||
@ -118,7 +118,7 @@ function select(src: HTMLElement | EventTarget | null, opts?: {
|
|||||||
menu.push({
|
menu.push({
|
||||||
type: 'switch',
|
type: 'switch',
|
||||||
text: i18n.ts.useWatermark,
|
text: i18n.ts.useWatermark,
|
||||||
disabled: !watermarkcanApplyWatermark,
|
disabled: !watermarkCanApply,
|
||||||
ref: useWatermark,
|
ref: useWatermark,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user