Skip to content

Commit

Permalink
add warning
Browse files Browse the repository at this point in the history
  • Loading branch information
BBesrour committed Oct 16, 2024
1 parent 08b22d3 commit 566ede9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,13 @@
[ngModel]="envVars"
(ngModelChange)="onEnvVarsChange($event)"
[pattern]="ENV_VAR_REGEX"
#envVarsInput="ngModel"
/>
@if (envVarsInput.invalid && (envVarsInput.dirty || envVarsInput.touched)) {
<div class="warning alert-warning mt-2" role="alert">
<span jhiTranslate="artemisApp.programmingExercise.dockerFlags.envVars.invalid"></span>
</div>
}
</div>
<div class="d-flex align-items-center justify-content-start gap-4 mb-2">
<div>
Expand Down
3 changes: 2 additions & 1 deletion src/main/webapp/i18n/de/programmingExercise.json
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,8 @@
},
"envVars": {
"title": "Umgebungsvariablen",
"description": "Fügen Sie Umgebungsvariablen zum Docker-Container hinzu. Bitte folgen Sie diesem Format: KEY_1=\"value_1\",KEY_2=\"value_2\". (Max 128 chars)"
"description": "Fügen Sie Umgebungsvariablen zum Docker-Container hinzu. Bitte folgen Sie diesem Format: KEY_1=\"value_1\",KEY_2=\"value_2\". (Max 128 chars)",
"invalid": "Ungültiges Format der Umgebungsvariablen. Bitte folgen Sie dem Format KEY_1=\"value_1\",KEY_2=\"value_2\". Schlüssel und Werte können in einfache oder doppelte Anführungszeichen gesetzt werden."
}
}
},
Expand Down
3 changes: 2 additions & 1 deletion src/main/webapp/i18n/en/programmingExercise.json
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,8 @@
},
"envVars": {
"title": "Environment Variables",
"description": "Add environment variables to the Docker container. Please follow the following format KEY_1=\"value_1\",KEY_2=\"value_2\". (Max 128 chars)"
"description": "Add environment variables to the Docker container. Please follow the following format KEY_1=\"value_1\",KEY_2=\"value_2\". (Max 128 chars)",
"invalid": "Invalid environment variable format. Please follow the format KEY_1=\"value_1\",KEY_2=\"value_2\". Keys and values can be wrapped in single or double quotes."
}
}
},
Expand Down

0 comments on commit 566ede9

Please sign in to comment.