ui:fix
This commit is contained in:
parent
a23e9a71bf
commit
557b5a7beb
|
@ -125,7 +125,7 @@ export interface Locale extends ILocale {
|
||||||
*/
|
*/
|
||||||
"showSocialTimeline": string;
|
"showSocialTimeline": string;
|
||||||
/**
|
/**
|
||||||
* 上のバーにTLの名前を常時表示する
|
* 上のバーにTLの名前を省略して表示する
|
||||||
*/
|
*/
|
||||||
"topBarNameShown": string;
|
"topBarNameShown": string;
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -23,9 +23,9 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<template v-if="page === 0">
|
<template v-if="page === 0">
|
||||||
<MkSpacer :marginMin="20" :marginMax="28">
|
<MkSpacer :marginMin="20" :marginMax="28">
|
||||||
<div class="_gaps_m" :class="$style.root">
|
<div class="_gaps_m" :class="$style.root">
|
||||||
<MkPagination v-slot="{items}" :key="user.id" :pagination="Pagination">
|
<MkPagination v-slot="{items}" :key="user.id" :pagination="Pagination" :disableAutoLoad="true">
|
||||||
<div v-for="item in items" :key="item.id" :class="$style.note">
|
<div v-for="item in items" :key="item.id" :class="$style.note">
|
||||||
<MkSwitch :modelValue="item.id === initialNoteId" @update:modelValue="pushAbuseReportNote($event,item.id)"></MkSwitch>
|
<MkSwitch :modelValue="abuseNotesId.includes(item.id)" @update:modelValue="pushAbuseReportNote($event,item.id)"></MkSwitch>
|
||||||
<MkAvatar :user="item.user" preview/>
|
<MkAvatar :user="item.user" preview/>
|
||||||
<MkNoteSimple :note="item"/>
|
<MkNoteSimple :note="item"/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -80,7 +80,6 @@ const Pagination = {
|
||||||
userId: props.user.id,
|
userId: props.user.id,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
(ev: 'closed'): void;
|
(ev: 'closed'): void;
|
||||||
}>();
|
}>();
|
||||||
|
@ -90,8 +89,8 @@ const page = ref(0);
|
||||||
const uiWindow = shallowRef<InstanceType<typeof MkWindow>>();
|
const uiWindow = shallowRef<InstanceType<typeof MkWindow>>();
|
||||||
const comment = ref(props.initialComment ?? '');
|
const comment = ref(props.initialComment ?? '');
|
||||||
|
|
||||||
function pushAbuseReportNote(v, id) {
|
function pushAbuseReportNote(ev, id) {
|
||||||
if (v) {
|
if (ev) {
|
||||||
abuseNotesId.value.push(id);
|
abuseNotesId.value.push(id);
|
||||||
} else {
|
} else {
|
||||||
abuseNotesId.value = abuseNotesId.value.filter(noteId => noteId !== id);
|
abuseNotesId.value = abuseNotesId.value.filter(noteId => noteId !== id);
|
||||||
|
|
Loading…
Reference in New Issue