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>
<div class="py-2"> <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> </div>
<!-- old experimental features --> <!-- old experimental features -->
@ -338,7 +338,7 @@ export default {
}) })
if (containsInvalid) { if (containsInvalid) {
this.$toast.error('Invalid CORS origin') this.$toast.error(this.$strings.ToastInvalidUrls)
this.newServerSettings.allowedOrigins = val.map((origin) => origin.trim().toLowerCase()) this.newServerSettings.allowedOrigins = val.map((origin) => origin.trim().toLowerCase())
return return
} }

View File

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