summaryrefslogtreecommitdiff
path: root/packages/frontend/src/ui/deck/tl-column.vue
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-09-29 16:56:17 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-09-29 16:56:17 +0900
commite5c339b86a06da9f573e17397017748737c91e44 (patch)
tree6362952a28d8a2505d08a95ef021bc9a31ed9cee /packages/frontend/src/ui/deck/tl-column.vue
parentUpdate create.test.ts (diff)
downloadmisskey-e5c339b86a06da9f573e17397017748737c91e44.tar.gz
misskey-e5c339b86a06da9f573e17397017748737c91e44.tar.bz2
misskey-e5c339b86a06da9f573e17397017748737c91e44.zip
enhance(frontend): タイムラインでファイルが添付されたノートのみ表示するオプションを追加
Diffstat (limited to 'packages/frontend/src/ui/deck/tl-column.vue')
-rw-r--r--packages/frontend/src/ui/deck/tl-column.vue8
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/frontend/src/ui/deck/tl-column.vue b/packages/frontend/src/ui/deck/tl-column.vue
index e89c8b3358..b6dc6c7f21 100644
--- a/packages/frontend/src/ui/deck/tl-column.vue
+++ b/packages/frontend/src/ui/deck/tl-column.vue
@@ -23,10 +23,11 @@ SPDX-License-Identifier: AGPL-3.0-only
<MkTimeline
v-else-if="column.tl"
ref="timeline"
- :key="column.tl + withRenotes + withReplies"
+ :key="column.tl + withRenotes + withReplies + onlyFiles"
:src="column.tl"
:withRenotes="withRenotes"
:withReplies="withReplies"
+ :onlyFiles="onlyFiles"
/>
</XColumn>
</template>
@@ -52,6 +53,7 @@ const isLocalTimelineAvailable = (($i == null && instance.policies.ltlAvailable)
const isGlobalTimelineAvailable = (($i == null && instance.policies.gtlAvailable) || ($i != null && $i.policies.gtlAvailable));
const withRenotes = $ref(props.column.withRenotes ?? true);
const withReplies = $ref(props.column.withReplies ?? false);
+const onlyFiles = $ref(props.column.onlyFiles ?? false);
watch($$(withRenotes), v => {
updateColumn(props.column.id, {
@@ -111,6 +113,10 @@ const menu = [{
type: 'switch',
text: i18n.ts.withReplies,
ref: $$(withReplies),
+}, {
+ type: 'switch',
+ text: i18n.ts.fileAttachedOnly,
+ ref: $$(onlyFiles),
}];
</script>