show preview with plaintext too

This commit is contained in:
Shpuld Shpuldson 2020-06-28 13:17:04 +03:00
parent cecf3d4f89
commit 6e2de20367

View file

@ -17,14 +17,14 @@
/>
<div class="form-group">
<a
v-if="newStatus.contentType !== 'text/plain' && !showPreview"
v-if="!showPreview"
class="preview-start"
@click.stop.prevent="previewStatus(newStatus)"
>
{{ $t('status.preview') }}
</a>
<div
v-if="showPreview && newStatus.contentType !== 'text/plain'"
v-else
class="preview-container"
>
<span class="preview-heading">