mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-28 03:40:25 +01:00
fix
This commit is contained in:
parent
32ee4d8c7a
commit
de93d68c54
2 changed files with 7 additions and 9 deletions
|
@ -635,12 +635,11 @@ function getMenu() {
|
||||||
type: 'switch',
|
type: 'switch',
|
||||||
text: i18n.ts.keepOriginalUploading,
|
text: i18n.ts.keepOriginalUploading,
|
||||||
ref: keepOriginal,
|
ref: keepOriginal,
|
||||||
}, ...($i?.policies.canUseWatermark ? [{
|
}, {
|
||||||
type: 'switch',
|
type: 'switch',
|
||||||
text: i18n.ts.useWatermark,
|
text: i18n.ts.useWatermark,
|
||||||
ref: useWatermark,
|
ref: useWatermark,
|
||||||
}] as MenuItem[] : []
|
}, { type: 'divider' }, {
|
||||||
), { type: 'divider' }, {
|
|
||||||
text: i18n.ts.addFile,
|
text: i18n.ts.addFile,
|
||||||
type: 'label',
|
type: 'label',
|
||||||
}, {
|
}, {
|
||||||
|
|
|
@ -94,12 +94,11 @@ function select(src: HTMLElement | EventTarget | null, label: string | null, mul
|
||||||
type: 'switch',
|
type: 'switch',
|
||||||
text: i18n.ts.keepOriginalUploading,
|
text: i18n.ts.keepOriginalUploading,
|
||||||
ref: keepOriginal,
|
ref: keepOriginal,
|
||||||
}, ...($i?.policies.canUseWatermark ? [{
|
}, {
|
||||||
type: 'switch',
|
type: 'switch',
|
||||||
text: i18n.ts.useWatermark,
|
text: i18n.ts.useWatermark,
|
||||||
ref: useWatermark,
|
ref: useWatermark,
|
||||||
}] as MenuItem[] : []
|
}, {
|
||||||
), {
|
|
||||||
text: i18n.ts.upload,
|
text: i18n.ts.upload,
|
||||||
icon: 'ti ti-upload',
|
icon: 'ti ti-upload',
|
||||||
action: () => chooseFileFromPc(multiple, keepOriginal.value, useWatermark.value).then(files => res(files)),
|
action: () => chooseFileFromPc(multiple, keepOriginal.value, useWatermark.value).then(files => res(files)),
|
||||||
|
|
Loading…
Reference in a new issue