This commit is contained in:
Vito0912 2025-08-03 13:57:44 +02:00
parent 6a52d2a968
commit af67c2e86f
No known key found for this signature in database
GPG Key ID: A0F767011D6093A2
2 changed files with 4 additions and 2 deletions

View File

@ -145,7 +145,7 @@
</div>
<div class="py-2">
<ui-multi-select v-model="newServerSettings.allowedOrigins" :items="newServerSettings.allowedOrigins" label="Allowed Cors" class="max-w-52" @input="updateCorsOrigins" />
<ui-multi-select v-model="newServerSettings.allowedOrigins" :items="newServerSettings.allowedOrigins" :label="$strings.LabelCorsAllowed" class="max-w-52" @input="updateCorsOrigins" />
</div>
<!-- old experimental features -->
@ -338,7 +338,7 @@ export default {
})
if (containsInvalid) {
this.$toast.error('Invalid CORS origin')
this.$toast.error(this.$strings.ToastInvalidUrls)
this.newServerSettings.allowedOrigins = val.map((origin) => origin.trim().toLowerCase())
return
}

View File

@ -293,6 +293,7 @@
"LabelContinueListening": "Continue Listening",
"LabelContinueReading": "Continue Reading",
"LabelContinueSeries": "Continue Series",
"LabelCorsAllowed": "Allowed CORS",
"LabelCover": "Cover",
"LabelCoverImageURL": "Cover Image URL",
"LabelCoverProvider": "Cover Provider",
@ -1034,6 +1035,7 @@
"ToastInvalidImageUrl": "Invalid image URL",
"ToastInvalidMaxEpisodesToDownload": "Invalid max episodes to download",
"ToastInvalidUrl": "Invalid URL",
"ToastInvalidUrls": "One or more URLs are invalid",
"ToastItemCoverUpdateSuccess": "Item cover updated",
"ToastItemDeletedFailed": "Failed to delete item",
"ToastItemDeletedSuccess": "Deleted item",