@@ -12,7 +12,7 @@ import { GitOpsEnvSelectionComponent } from './gitops-env-selection/gitops-env-s
1212import { FormBuilder , FormControl , FormGroup , Validators } from '@angular/forms' ;
1313import { AdminService } from 'src/app/services/admin.service' ;
1414import { GitOpsUpdateTokensComponent } from './gitops-update-tokens/gitops-update-tokens.component' ;
15- import { windowValidator } from './gitops-validator' ;
15+ import { pathValidator , windowValidator } from './gitops-validator' ;
1616import { ToastService } from 'src/app/_helpers/toast.service' ;
1717import { NgbModal } from '@ng-bootstrap/ng-bootstrap' ;
1818import { NgbdModalConfirmComponent } from 'src/app/_helpers/confirmation-dialog' ;
@@ -268,7 +268,7 @@ export class ExtGitOpsComponent implements OnInit, OnDestroy {
268268 environment : new FormControl ( '' , [ Validators . required ] ) ,
269269 repository : new FormControl ( '' , [ Validators . required ] ) ,
270270 branch : new FormControl ( '' , [ Validators . required ] ) ,
271- path : new FormControl ( '' ) ,
271+ path : new FormControl ( '' , [ pathValidator ( ) , Validators . maxLength ( 255 ) ] ) ,
272272 token : new FormControl ( '' , [ Validators . required ] ) ,
273273 active : new FormControl ( true ) ,
274274 forceprune : new FormControl ( false ) ,
0 commit comments