Skip to content

Commit

Permalink
Merge pull request #963 from DSD-DBS/fix-required-entrypoint
Browse files Browse the repository at this point in the history
fix: Add asterisc to entry point when editiing the model sources
  • Loading branch information
MoritzWeber0 authored Sep 5, 2023
2 parents 55817a6 + dab90b7 commit 6f11023
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,10 @@ export class ManageGitModelComponent implements OnInit, OnDestroy {
.subscribe((model) => {
this.modelSlug = model.slug;
if (model.tool.name === 'Capella') {
this.form.controls.entrypoint.addValidators(
Validators.pattern(/^$|\.aird$/)
);
this.form.controls.entrypoint.addValidators([
Validators.pattern(/^$|\.aird$/),
Validators.required,
]);
}
});

Expand Down

0 comments on commit 6f11023

Please sign in to comment.