1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-05 00:19:59 +00:00

fix: StatusSpoiler filter value type (#380)

This commit is contained in:
Ayo Ayco 2022-12-08 18:19:29 +01:00 committed by GitHub
parent ae8f4dfa22
commit b0dae4fc9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,7 +97,7 @@ const avatarOnAvatar = $(computedEager(() => useFeatureFlags().experimentalAvata
<StatusActionsMore :status="status" mr--2 />
</div>
<div :class="status.visibility === 'direct' ? 'my3 p1 px4 br2 bg-fade border-primary border-1 rounded-3 rounded-tl-none' : ''">
<StatusSpoiler :enabled="status.sensitive || isFiltered" :filter="filter?.filterAction">
<StatusSpoiler :enabled="status.sensitive || isFiltered" :filter="isFiltered">
<template #spoiler>
<p>{{ filterPhrase ? `${$t('status.filter_hidden_phrase')}: ${filterPhrase}` : status.spoilerText }}</p>
</template>