Skip to content

Commit

Permalink
Update list-column.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
syuilo authored Oct 3, 2023
1 parent 917eb6b commit 9a2c3bc
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions packages/frontend/src/ui/deck/list-column.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ 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" :with-renotes="withRenotes" :with-replies="withReplies"/>
<MkTimeline v-if="column.listId" ref="timeline" src="list" :list="column.listId" :withRenotes="withRenotes"/>
</XColumn>
</template>

Expand All @@ -28,7 +28,6 @@ const props = defineProps<{

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

if (props.column.listId == null) {
setList();
Expand All @@ -40,11 +39,6 @@ watch($$(withRenotes), v => {
});
});

watch($$(withReplies), v => {
updateColumn(props.column.id, {
withReplies: v,
});
});
async function setList() {
const lists = await os.api('users/lists/list');
const { canceled, result: list } = await os.select({
Expand Down Expand Up @@ -80,10 +74,5 @@ const menu = [
text: i18n.ts.showRenotes,
ref: $$(withRenotes),
},
{
type: 'switch',
text: i18n.ts.withReplies,
ref: $$(withReplies),
},
];
</script>

0 comments on commit 9a2c3bc

Please sign in to comment.