This commit is contained in:
syuilo 2023-09-29 17:05:35 +09:00
parent e5c339b86a
commit 5edc885c22
2 changed files with 7 additions and 1 deletions

View file

@ -151,7 +151,7 @@ const headerActions = $computed(() => [{
ref: $$(withReplies),
}, {
type: 'switch',
text: i18n.ts.onlyFiles,
text: i18n.ts.fileAttachedOnly,
icon: 'ti ti-photo',
ref: $$(onlyFiles),
}], ev.currentTarget ?? ev.target);

View file

@ -67,6 +67,12 @@ watch($$(withReplies), v => {
});
});
watch($$(onlyFiles), v => {
updateColumn(props.column.id, {
onlyFiles: v,
});
});
onMounted(() => {
if (props.column.tl == null) {
setType();