add: auto uncollapse CW on all notes option
Closes transfem-org/Sharkey#191
This commit is contained in:
parent
aa4c3dfffe
commit
620be4a9e1
10 changed files with 17 additions and 9 deletions
|
|
@ -28,6 +28,7 @@ import MkNoteHeader from '@/components/MkNoteHeader.vue';
|
|||
import MkSubNoteContent from '@/components/MkSubNoteContent.vue';
|
||||
import MkCwButton from '@/components/MkCwButton.vue';
|
||||
import { $i } from '@/account.js';
|
||||
import { defaultStore } from '@/store.js';
|
||||
|
||||
const props = defineProps<{
|
||||
note: Misskey.entities.Note;
|
||||
|
|
@ -35,7 +36,7 @@ const props = defineProps<{
|
|||
hideFiles?: boolean;
|
||||
}>();
|
||||
|
||||
let showContent = $ref(false);
|
||||
let showContent = $ref(defaultStore.state.uncollapseCW);
|
||||
|
||||
watch(() => props.expandAllCws, (expandAllCws) => {
|
||||
if (expandAllCws !== showContent) showContent = expandAllCws;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue