mirror of
https://github.com/portainer/portainer.git
synced 2025-07-20 13:59:40 +02:00
fix(edge-stack): add validation for edge stack name [EE-4283] (#8504)
This commit is contained in:
parent
defce0cf6d
commit
6d659b4a2c
5 changed files with 16 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
|||
import { EditorType } from '@/react/edge/edge-stacks/types';
|
||||
import { PortainerEndpointTypes } from '@/portainer/models/endpoint/models';
|
||||
import { getValidEditorTypes } from '@/react/edge/edge-stacks/utils';
|
||||
import { STACK_NAME_VALIDATION_REGEX } from '@/react/constants';
|
||||
import { confirmWebEditorDiscard } from '@@/modals/confirm';
|
||||
|
||||
export default class CreateEdgeStackViewController {
|
||||
|
@ -38,6 +39,8 @@ export default class CreateEdgeStackViewController {
|
|||
|
||||
this.edgeGroups = null;
|
||||
|
||||
$scope.STACK_NAME_VALIDATION_REGEX = STACK_NAME_VALIDATION_REGEX;
|
||||
|
||||
this.createStack = this.createStack.bind(this);
|
||||
this.validateForm = this.validateForm.bind(this);
|
||||
this.createStackByMethod = this.createStackByMethod.bind(this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue