1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-01 00:08:31 +09:00

Merge commit 'refs/pull/11951/head' of https://github.com/misskey-dev/misskey into develop

This commit is contained in:
NoriDev 2023-10-02 23:49:10 +09:00
commit 239c487e54
2 changed files with 34 additions and 2 deletions

View File

@ -12,6 +12,15 @@
-->
## 2023.x.x (unreleased)
### General
### Client
- Fix: deck uiでuser listを見たときにリプライが表示されない
### Server
## 2023.9.3
### General
- Enhance: ノートの翻訳機能の利用可否をロールで設定可能に

View File

@ -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" :with-renotes="withRenotes" :with-replies="withReplies"/>
</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';
@ -27,11 +27,24 @@ 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();
}
watch($$(withRenotes), v => {
updateColumn(props.column.id, {
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({
@ -62,5 +75,15 @@ const menu = [
text: i18n.ts.editList,
action: editList,
},
{
type: 'switch',
text: i18n.ts.showRenotes,
ref: $$(withRenotes),
},
{
type: 'switch',
text: i18n.ts.withReplies,
ref: $$(withReplies),
},
];
</script>