From ca95a108e395682e27faa94f9b841975293c0f63 Mon Sep 17 00:00:00 2001 From: Astra Date: Thu, 7 Jun 2018 17:31:43 -0400 Subject: [PATCH] should resolve a 3/4 things --- src/components/post_status_form/post_status_form.js | 4 ++-- src/components/post_status_form/post_status_form.vue | 2 +- src/i18n/messages.js | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index 0f8ebecd..4b715086 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -191,7 +191,7 @@ const PostStatusForm = { this.posting = true statusPoster.postStatus({ status: newStatus.status, - spoilerText: newStatus.spoilerText || undefined, + spoilerText: newStatus.spoilerText || null, visibility: newStatus.visibility, media: newStatus.files, store: this.$store, @@ -207,7 +207,7 @@ const PostStatusForm = { el.style.height = '16px' this.error = null - Object.keys(this.vis).forEach(function (x) { this.vis[x].selected = false }) + for (key in Object.keys(this.vis)) { this.vis[key].selected = false } this.vis.public.selected = true } 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 e76850ae..dbd11a19 100644 --- a/src/components/post_status_form/post_status_form.vue +++ b/src/components/post_status_form/post_status_form.vue @@ -4,7 +4,7 @@