Skip to content

Commit

Permalink
fix: deck uiでuser listを見たときにリプライが表示されない (#11951)
Browse files Browse the repository at this point in the history
* fix: deck uiでuser listを見たときにリプライが表示されない

* docs(changelog): deck uiでuser listを見たときにリプライが表示されない

* Update list-column.vue

---------

Co-authored-by: syuilo <[email protected]>
  • Loading branch information
anatawa12 and syuilo authored Oct 3, 2023
1 parent f3e09af commit 5fd0cb3
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions packages/frontend/src/ui/deck/list-column.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ SPDX-License-Identifier: AGPL-3.0-only
<i class="ti ti-list"></i><span style="margin-left: 8px;">{{ column.name }}</span>
</template>

<MkTimeline v-if="column.listId" ref="timeline" src="list" :list="column.listId"/>
<MkTimeline v-if="column.listId" ref="timeline" src="list" :list="column.listId" :withRenotes="withRenotes"/>
</XColumn>
</template>

<script lang="ts" setup>
import { } from 'vue';
import { watch } from 'vue';
import XColumn from './column.vue';
import { updateColumn, Column } from './deck-store';
import MkTimeline from '@/components/MkTimeline.vue';
Expand All @@ -27,11 +27,18 @@ const props = defineProps<{
}>();

let timeline = $shallowRef<InstanceType<typeof MkTimeline>>();
const withRenotes = $ref(props.column.withRenotes ?? true);

if (props.column.listId == null) {
setList();
}

watch($$(withRenotes), v => {
updateColumn(props.column.id, {
withRenotes: v,
});
});

async function setList() {
const lists = await os.api('users/lists/list');
const { canceled, result: list } = await os.select({
Expand Down Expand Up @@ -62,5 +69,10 @@ const menu = [
text: i18n.ts.editList,
action: editList,
},
{
type: 'switch',
text: i18n.ts.showRenotes,
ref: $$(withRenotes),
},
];
</script>

0 comments on commit 5fd0cb3

Please sign in to comment.