This commit is contained in:
syuilo 2025-06-07 08:07:23 +09:00
parent 6506429f09
commit 4906f1f45c
3 changed files with 6 additions and 0 deletions

View File

@ -593,6 +593,7 @@ function showOtherSettings() {
}, },
}, { type: 'divider' }, { }, { type: 'divider' }, {
type: 'switch', type: 'switch',
icon: 'ti ti-eye',
text: i18n.ts.preview, text: i18n.ts.preview,
ref: showPreview, ref: showPreview,
}, { }, {

View File

@ -174,6 +174,7 @@ export function useUploader(options: {
}, { }, {
type: 'switch', type: 'switch',
text: i18n.ts.sensitive, text: i18n.ts.sensitive,
icon: 'ti ti-eye-exclamation',
ref: computed({ ref: computed({
get: () => item.isSensitive ?? false, get: () => item.isSensitive ?? false,
set: (value) => item.isSensitive = value, set: (value) => item.isSensitive = value,

View File

@ -226,6 +226,7 @@ const headerActions = computed(() => {
menuItems.push({ menuItems.push({
type: 'switch', type: 'switch',
icon: 'ti ti-repeat',
text: i18n.ts.showRenotes, text: i18n.ts.showRenotes,
ref: withRenotes, ref: withRenotes,
}); });
@ -233,6 +234,7 @@ const headerActions = computed(() => {
if (isBasicTimeline(src.value) && hasWithReplies(src.value)) { if (isBasicTimeline(src.value) && hasWithReplies(src.value)) {
menuItems.push({ menuItems.push({
type: 'switch', type: 'switch',
icon: 'ti ti-messages',
text: i18n.ts.showRepliesToOthersInTimeline, text: i18n.ts.showRepliesToOthersInTimeline,
ref: withReplies, ref: withReplies,
disabled: onlyFiles, disabled: onlyFiles,
@ -241,10 +243,12 @@ const headerActions = computed(() => {
menuItems.push({ menuItems.push({
type: 'switch', type: 'switch',
icon: 'ti ti-eye-exclamation',
text: i18n.ts.withSensitive, text: i18n.ts.withSensitive,
ref: withSensitive, ref: withSensitive,
}, { }, {
type: 'switch', type: 'switch',
icon: 'ti ti-photo',
text: i18n.ts.fileAttachedOnly, text: i18n.ts.fileAttachedOnly,
ref: onlyFiles, ref: onlyFiles,
disabled: isBasicTimeline(src.value) && hasWithReplies(src.value) ? withReplies : false, disabled: isBasicTimeline(src.value) && hasWithReplies(src.value) ? withReplies : false,