mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2025-01-04 03:01:21 +01:00
Remove computed
This commit is contained in:
parent
034682f7ac
commit
523cc67c14
1 changed files with 4 additions and 4 deletions
|
@ -57,7 +57,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { ref, computed, onDeactivated } from 'vue';
|
import { ref, onDeactivated } from 'vue';
|
||||||
import * as Misskey from 'misskey-js';
|
import * as Misskey from 'misskey-js';
|
||||||
import MkEllipsis from '@/components/global/MkEllipsis.vue';
|
import MkEllipsis from '@/components/global/MkEllipsis.vue';
|
||||||
import MkLoading from '@/components/global/MkLoading.vue';
|
import MkLoading from '@/components/global/MkLoading.vue';
|
||||||
|
@ -70,9 +70,9 @@ const props = defineProps<{
|
||||||
flashFile: Misskey.entities.DriveFile
|
flashFile: Misskey.entities.DriveFile
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const isSensitive = computed(() => { return props.flashFile.isSensitive; });
|
const isSensitive = props.flashFile.isSensitive;
|
||||||
const url = computed(() => { return props.flashFile.url; });
|
const url = props.flashFile.url;
|
||||||
const comment = computed(() => { return props.flashFile.comment ?? ''; });
|
const comment = props.flashFile.comment ?? '';
|
||||||
let hide = ref((defaultStore.state.nsfw === 'force') || isSensitive.value && (defaultStore.state.nsfw !== 'ignore'));
|
let hide = ref((defaultStore.state.nsfw === 'force') || isSensitive.value && (defaultStore.state.nsfw !== 'ignore'));
|
||||||
let playerHide = ref(true);
|
let playerHide = ref(true);
|
||||||
let ruffleContainer = ref<HTMLDivElement>();
|
let ruffleContainer = ref<HTMLDivElement>();
|
||||||
|
|
Loading…
Reference in a new issue