This commit is contained in:
Henry Jameson 2021-06-22 20:47:35 +03:00
parent dd3fe61cf3
commit b67db47c88
6 changed files with 25 additions and 26 deletions

View file

@ -15,12 +15,12 @@
@click.prevent=""
>
<FAIcon :icon="placeholderIconClass" />
<b>{{ nsfw ? "NSFW / " : "" }}</b>{{ this.edit ? '' : placeholderName }}
<b>{{ nsfw ? "NSFW / " : "" }}</b>{{ edit ? '' : placeholderName }}
</a>
<div
class="attachment-buttons"
v-if="edit || remove"
>
class="attachment-buttons"
>
<button
v-if="remove"
class="button-unstyled attachment-button"
@ -48,13 +48,13 @@
</div>
</button>
<div
v-else
class="Attachment"
:class="classNames"
v-else
>
<div
class="attachment-wrapper"
v-show="!isEmpty"
class="attachment-wrapper"
>
<a
v-if="hidden"
@ -76,9 +76,9 @@
/>
</a>
<div
class="attachment-buttons"
v-if="!hidden"
>
class="attachment-buttons"
>
<button
v-if="type === 'flash' && flashLoaded"
class="button-unstyled attachment-button"
@ -190,8 +190,8 @@
@click.stop.prevent="openModal"
>
<Flash
class="flash"
ref="flash"
class="flash"
:src="attachment.large_thumb_url || attachment.url"
@playerOpened="setFlashLoaded(true)"
@playerClosed="setFlashLoaded(false)"