forked from AkkomaGang/akkoma-fe
should resolve a 3/4 things
This commit is contained in:
parent
a759378b4d
commit
ca95a108e3
3 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -327,6 +327,7 @@ const en = {
|
|||
},
|
||||
post_status: {
|
||||
posting: 'Posting',
|
||||
content_warning: 'Content warning (optional)',
|
||||
default: 'Just landed in L.A.'
|
||||
},
|
||||
finder: {
|
||||
|
|
Loading…
Reference in a new issue