|
@@ -12,7 +12,6 @@
|
|
:href="attachment.url"
|
|
:href="attachment.url"
|
|
:alt="attachment.description"
|
|
:alt="attachment.description"
|
|
:title="attachment.description"
|
|
:title="attachment.description"
|
|
- @click.prevent=""
|
|
|
|
>
|
|
>
|
|
<FAIcon :icon="placeholderIconClass" />
|
|
<FAIcon :icon="placeholderIconClass" />
|
|
<b>{{ nsfw ? "NSFW / " : "" }}</b>{{ edit ? '' : placeholderName }}
|
|
<b>{{ nsfw ? "NSFW / " : "" }}</b>{{ edit ? '' : placeholderName }}
|
|
@@ -88,7 +87,7 @@
|
|
<FAIcon icon="stop" />
|
|
<FAIcon icon="stop" />
|
|
</button>
|
|
</button>
|
|
<button
|
|
<button
|
|
- v-if="attachment.description && size !== 'small' && !edit"
|
|
|
|
|
|
+ v-if="attachment.description && size !== 'small' && !edit && type !== 'unknown'"
|
|
class="button-unstyled attachment-button"
|
|
class="button-unstyled attachment-button"
|
|
@click.prevent="toggleDescription"
|
|
@click.prevent="toggleDescription"
|
|
:title="$t('status.show_attachment_description')"
|
|
:title="$t('status.show_attachment_description')"
|
|
@@ -96,7 +95,7 @@
|
|
<FAIcon icon="align-right" />
|
|
<FAIcon icon="align-right" />
|
|
</button>
|
|
</button>
|
|
<button
|
|
<button
|
|
- v-if="!useModal"
|
|
|
|
|
|
+ v-if="!useModal && type !== 'unknown'"
|
|
class="button-unstyled attachment-button"
|
|
class="button-unstyled attachment-button"
|
|
@click.prevent="openModalForce"
|
|
@click.prevent="openModalForce"
|
|
:title="$t('status.show_attachment_in_modal')"
|
|
:title="$t('status.show_attachment_in_modal')"
|
|
@@ -155,6 +154,18 @@
|
|
/>
|
|
/>
|
|
</a>
|
|
</a>
|
|
|
|
|
|
|
|
+ <a
|
|
|
|
+ v-if="type === 'unknown' && !hidden"
|
|
|
|
+ class="placeholder-container"
|
|
|
|
+ :href="attachment.url"
|
|
|
|
+ target="_blank"
|
|
|
|
+ >
|
|
|
|
+ <FAIcon size="5x" :icon="placeholderIconClass" />
|
|
|
|
+ <p>
|
|
|
|
+ {{ localDescription }}
|
|
|
|
+ </p>
|
|
|
|
+ </a>
|
|
|
|
+
|
|
<component
|
|
<component
|
|
:is="videoTag"
|
|
:is="videoTag"
|
|
v-if="type === 'video' && !hidden"
|
|
v-if="type === 'video' && !hidden"
|