hack for langauges

This commit is contained in:
Beefox 2023-07-07 16:24:07 +10:00
parent f1f270e1bd
commit f7f73408e3
2 changed files with 8 additions and 13 deletions

View File

@ -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) => {

View File

@ -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>