forked from AkkomaGang/akkoma-fe
hack for langauges
This commit is contained in:
parent
f1f270e1bd
commit
f7f73408e3
|
@ -328,7 +328,7 @@ const PostStatusForm = {
|
||||||
files: [],
|
files: [],
|
||||||
visibility: newStatus.visibility,
|
visibility: newStatus.visibility,
|
||||||
contentType: newStatus.contentType,
|
contentType: newStatus.contentType,
|
||||||
language: newStatus.language,
|
language: "en",
|
||||||
poll: {},
|
poll: {},
|
||||||
mediaDescriptions: {}
|
mediaDescriptions: {}
|
||||||
}
|
}
|
||||||
|
@ -388,7 +388,7 @@ const PostStatusForm = {
|
||||||
inReplyToStatusId: this.replyTo,
|
inReplyToStatusId: this.replyTo,
|
||||||
quoteId: this.quoteId,
|
quoteId: this.quoteId,
|
||||||
contentType: newStatus.contentType,
|
contentType: newStatus.contentType,
|
||||||
language: newStatus.language,
|
language: "en",
|
||||||
poll,
|
poll,
|
||||||
idempotencyKey: this.idempotencyKey
|
idempotencyKey: this.idempotencyKey
|
||||||
}
|
}
|
||||||
|
@ -423,7 +423,7 @@ const PostStatusForm = {
|
||||||
inReplyToStatusId: this.replyTo,
|
inReplyToStatusId: this.replyTo,
|
||||||
quoteId: this.quoteId,
|
quoteId: this.quoteId,
|
||||||
contentType: newStatus.contentType,
|
contentType: newStatus.contentType,
|
||||||
language: newStatus.language,
|
language: "en",
|
||||||
poll: {},
|
poll: {},
|
||||||
preview: true
|
preview: true
|
||||||
}).then((data) => {
|
}).then((data) => {
|
||||||
|
|
|
@ -196,20 +196,12 @@
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="language-selector"
|
class="language-selector"
|
||||||
>
|
>
|
||||||
<Select
|
<input
|
||||||
id="post-language"
|
id="post-language"
|
||||||
v-model="newStatus.language"
|
v-model="newStatus.language"
|
||||||
class="form-control"
|
class="form-control"
|
||||||
>
|
>
|
||||||
<option
|
|
||||||
v-for="language in isoLanguages"
|
|
||||||
:key="language"
|
|
||||||
:value="language"
|
|
||||||
>
|
|
||||||
{{ language }}
|
|
||||||
</option>
|
|
||||||
</Select>
|
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="postFormats.length > 1"
|
v-if="postFormats.length > 1"
|
||||||
|
@ -617,5 +609,8 @@
|
||||||
border: 2px dashed $fallback--text;
|
border: 2px dashed $fallback--text;
|
||||||
border: 2px dashed var(--text, $fallback--text);
|
border: 2px dashed var(--text, $fallback--text);
|
||||||
}
|
}
|
||||||
|
#post-language{
|
||||||
|
width: 6ch;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue