Skip to content

Commit

Permalink
Temporarily hide the TypeOfService selector and allow empty values to…
Browse files Browse the repository at this point in the history
… prevent unsubmittable forms

Resolves #1321
  • Loading branch information
johanib committed Nov 27, 2024
1 parent a8db8ab commit 097faf4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
4 changes: 4 additions & 0 deletions assets/scss/pages/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,7 @@
.hidden {
display: none;
}

div.form-row:has(#dashboard_bundle_entity_type_metadata_typeOfService) {
display: none;
}
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,12 @@ class SaveOidcngEntityCommand implements SaveEntityCommandInterface
#[Assert\Length(max: 300)]
private $applicationUrl;

/**
* // phpcs:ignore
* `new Assert\NotBlank(),` TODO enable in https://github.com/SURFnet/sp-dashboard/issues/1322
*/
/** @var TypeOfService[] */
#[Assert\All([
new Assert\NotBlank(),
new Assert\Type(type: TypeOfService::class),
])]
#[Assert\Count(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,12 @@ class SaveSamlEntityCommand implements SaveEntityCommandInterface
#[Assert\Length(max: 300)]
private ?string $applicationUrl = null;

/** @var TypeOfService[] */
/**
* // phpcs:ignore
* `new Assert\NotBlank(),` TODO enable in https://github.com/SURFnet/sp-dashboard/issues/1322
* @var TypeOfService[]
*/
#[Assert\All([
new Assert\NotBlank(),
new Assert\Type(type: TypeOfService::class),
])]
#[Assert\Count(
Expand Down

0 comments on commit 097faf4

Please sign in to comment.