From ada5a3806b3c36ad67d3a76f41bc1a9f18445759 Mon Sep 17 00:00:00 2001 From: Shpuld Shpuldson Date: Mon, 6 Jul 2020 11:36:35 +0300 Subject: [PATCH] don't close preview on post, move visibility notices above the preview where they belong --- .../post_status_form/post_status_form.js | 2 +- .../post_status_form/post_status_form.vue | 76 +++++++++---------- 2 files changed, 39 insertions(+), 39 deletions(-) diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index 3d731ae4..daadc10f 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -227,7 +227,7 @@ const PostStatusForm = { el.style.height = 'auto' el.style.height = undefined this.error = null - this.closePreview() + this.previewStatus() } else { this.error = data.error } diff --git a/src/components/post_status_form/post_status_form.vue b/src/components/post_status_form/post_status_form.vue index 94729f75..60dc4a21 100644 --- a/src/components/post_status_form/post_status_form.vue +++ b/src/components/post_status_form/post_status_form.vue @@ -16,44 +16,6 @@ @drop.stop="fileDrop" />
- -
-
- {{ $t('general.loading') }} -
-
- {{ preview.error }} -
- -
{{ $t('post_status.direct_warning_to_first_only') }} {{ $t('post_status.direct_warning_to_all') }}

+ +
+
+ {{ $t('general.loading') }} +
+
+ {{ preview.error }} +
+ +