upd: hide files in post form by default

Closes transfem-org/Sharkey#99
This commit is contained in:
Mar0xy 2023-10-20 00:27:24 +02:00
parent 537af45e71
commit 659574e457
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
3 changed files with 6 additions and 4 deletions

View file

@ -14,7 +14,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<MkCwButton v-model="showContent" :note="note"/>
</p>
<div v-show="note.cw == null || showContent">
<MkSubNoteContent :class="$style.text" :note="note"/>
<MkSubNoteContent :hideFiles="hideFiles" :class="$style.text" :note="note"/>
</div>
</div>
</div>
@ -32,6 +32,7 @@ import { $i } from '@/account.js';
const props = defineProps<{
note: Misskey.entities.Note;
expandAllCws?: boolean;
hideFiles?: boolean;
}>();
let showContent = $ref(false);