aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAstra <dr1ft.ast@gmail.com>2018-06-07 17:31:43 -0400
committerAstra <dr1ft.ast@gmail.com>2018-06-07 17:31:43 -0400
commitd62e7029948fce572a3c4ff0a50ad40130687238 (patch)
tree3dc840caff3130c2ac5bc498cc71ad8800721ed6 /src
parenta759378b4d82bcb3ff20590b1369cb86d3e0dc50 (diff)
should resolve a 3/4 things
Diffstat (limited to 'src')
-rw-r--r--src/components/post_status_form/post_status_form.js12
-rw-r--r--src/components/post_status_form/post_status_form.vue2
-rw-r--r--src/i18n/messages.js1
3 files changed, 8 insertions, 7 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..cc08c8a2 100644
--- a/src/components/post_status_form/post_status_form.js
+++ b/src/components/post_status_form/post_status_form.js
@@ -47,10 +47,10 @@ const PostStatusForm = {
posting: false,
highlighted: 0,
vis: {
- public: { 'icon-globe': true, big: true, selected: true },
- unlisted: { 'icon-lock-open-alt': true, big: true, selected: false },
- private: { 'icon-lock': true, big: true, selected: false },
- direct: { 'icon-mail-alt': true, big: true, selected: false }
+ public: { icon: 'icon-globe', big: true, selected: true },
+ unlisted: { icon: 'icon-lock-open-alt', big: true, selected: false },
+ private: { icon: 'icon-lock', big: true, selected: false },
+ direct: { icon: 'icon-mail-alt', big: true, selected: false }
},
newStatus: {
status: statusText,
@@ -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 @@
<div class="form-group" >
<input
type="text"
- placeholder="Content warning (optional)"
+ :placeholder="$t('post_status.content_warning')"
v-model="newStatus.spoilerText"
class="form-cw">
<textarea
diff --git a/src/i18n/messages.js b/src/i18n/messages.js
index 54a99b5a..1975f2a8 100644
--- a/src/i18n/messages.js
+++ b/src/i18n/messages.js
@@ -327,6 +327,7 @@ const en = {
},
post_status: {
posting: 'Posting',
+ content_warning: 'Content warning (optional)',
default: 'Just landed in L.A.'
},
finder: {