should resolve a 3/4 things
This commit is contained in:
parent
a759378b4d
commit
d62e702994
|
@ -47,10 +47,10 @@ const PostStatusForm = {
|
||||||
posting: false,
|
posting: false,
|
||||||
highlighted: 0,
|
highlighted: 0,
|
||||||
vis: {
|
vis: {
|
||||||
public: { 'icon-globe': true, big: true, selected: true },
|
public: { icon: 'icon-globe', big: true, selected: true },
|
||||||
unlisted: { 'icon-lock-open-alt': true, big: true, selected: false },
|
unlisted: { icon: 'icon-lock-open-alt', big: true, selected: false },
|
||||||
private: { 'icon-lock': true, big: true, selected: false },
|
private: { icon: 'icon-lock', big: true, selected: false },
|
||||||
direct: { 'icon-mail-alt': true, big: true, selected: false }
|
direct: { icon: 'icon-mail-alt', big: true, selected: false }
|
||||||
},
|
},
|
||||||
newStatus: {
|
newStatus: {
|
||||||
status: statusText,
|
status: statusText,
|
||||||
|
@ -191,7 +191,7 @@ const PostStatusForm = {
|
||||||
this.posting = true
|
this.posting = true
|
||||||
statusPoster.postStatus({
|
statusPoster.postStatus({
|
||||||
status: newStatus.status,
|
status: newStatus.status,
|
||||||
spoilerText: newStatus.spoilerText || undefined,
|
spoilerText: newStatus.spoilerText || null,
|
||||||
visibility: newStatus.visibility,
|
visibility: newStatus.visibility,
|
||||||
media: newStatus.files,
|
media: newStatus.files,
|
||||||
store: this.$store,
|
store: this.$store,
|
||||||
|
@ -207,7 +207,7 @@ const PostStatusForm = {
|
||||||
el.style.height = '16px'
|
el.style.height = '16px'
|
||||||
this.error = null
|
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
|
this.vis.public.selected = true
|
||||||
} else {
|
} else {
|
||||||
this.error = data.error
|
this.error = data.error
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<div class="form-group" >
|
<div class="form-group" >
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
placeholder="Content warning (optional)"
|
:placeholder="$t('post_status.content_warning')"
|
||||||
v-model="newStatus.spoilerText"
|
v-model="newStatus.spoilerText"
|
||||||
class="form-cw">
|
class="form-cw">
|
||||||
<textarea
|
<textarea
|
||||||
|
|
|
@ -327,6 +327,7 @@ const en = {
|
||||||
},
|
},
|
||||||
post_status: {
|
post_status: {
|
||||||
posting: 'Posting',
|
posting: 'Posting',
|
||||||
|
content_warning: 'Content warning (optional)',
|
||||||
default: 'Just landed in L.A.'
|
default: 'Just landed in L.A.'
|
||||||
},
|
},
|
||||||
finder: {
|
finder: {
|
||||||
|
|
Loading…
Reference in New Issue