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