diff --git a/frontend/src/app/dashboard/component/user/user-venv/user-venv.component.ts b/frontend/src/app/dashboard/component/user/user-venv/user-venv.component.ts index 0e84d3a298e..9ca9a5bf6fb 100644 --- a/frontend/src/app/dashboard/component/user/user-venv/user-venv.component.ts +++ b/frontend/src/app/dashboard/component/user/user-venv/user-venv.component.ts @@ -175,6 +175,11 @@ export class UserVenvComponent implements OnInit { return; } + if (!/^[a-zA-Z0-9]+$/.test(trimmedName)) { + this.notificationService.error("Environment name must contain only letters and numbers."); + return; + } + const conflict = this.pves.find(p => p.name.trim() === trimmedName && p.veid !== draft.veid); if (conflict) { this.notificationService.error(`An environment named "${trimmedName}" already exists.`); diff --git a/frontend/src/app/workspace/component/power-button/computing-unit-selection.component.html b/frontend/src/app/workspace/component/power-button/computing-unit-selection.component.html index 7fe7dca6777..f6409f1aeef 100644 --- a/frontend/src/app/workspace/component/power-button/computing-unit-selection.component.html +++ b/frontend/src/app/workspace/component/power-button/computing-unit-selection.component.html @@ -452,12 +452,6 @@ (click)="closePveModal()"> Close - @@ -511,6 +505,33 @@ + +