diff --git a/src/components/metadata-editor.vue b/src/components/metadata-editor.vue index 9e0cfd89f..4ab3721f5 100644 --- a/src/components/metadata-editor.vue +++ b/src/components/metadata-editor.vue @@ -105,6 +105,7 @@ changeUuid.length === 0 || checkingUuid || processingRename || + error || warning === 'rename' " > @@ -225,7 +226,7 @@ > + (rename ? this.changeUuid : this.uuid).includes(badChar) + ); + + if (illegalCharsContained.length) { + this.error = true; + this.warning = 'badChar'; + this.checkingUuid = false; + return; + } + if (!rename && !this.uuid) { if (!this.loadExisting) { this.error = true; diff --git a/src/lang/lang.csv b/src/lang/lang.csv index 15cb0d07a..d17979976 100644 --- a/src/lang/lang.csv +++ b/src/lang/lang.csv @@ -105,6 +105,7 @@ editor.metadata.newUuidInstructions,"Enter a unique ID for your new storyline. O editor.warning.rename,UUID already in use. Please choose a different ID.,1,UUID déjà utilisé. Veuillez choisir un autre identifiant.,0 editor.warning.blank,UUID field cannot be blank. Please enter a unique UUID.,1,Le champ UUID ne peut pas être vide. Veuillez saisir un UUID unique.,0 editor.warning.renameFailed,Failed to rename product.,1,Échec du renommage du produit.,0 +editor.warning.badChar,"Illegal character entered. You cannot use these characters in your UUID: {': / # ? & @ % +'}",1,"Caractère illégal saisi. Vous ne pouvez pas utiliser ces caractères dans votre UUID: {': / # ? & @ % +'}",0 editor.changeUuid,Click here to change UUID,1,Cliquez ici pour changer,0 editor.title,Title,1,Titre,1 editor.respectTitle,RAMP Storylines Editor & Creation Tool,1,Éditeur et outil de création de scénarios RAMP,0