Skip to content

Commit

Permalink
chore: Add icon to button "add constraint"
Browse files Browse the repository at this point in the history
  • Loading branch information
Angi-Kinas committed Oct 28, 2024
1 parent b696b3b commit 183a6e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
*ngIf="isAdditonalElementsVisible$ | async"
type="gray"
(buttonClick)="addConstraintSectionToDisplay()"
><span translate="">{{
>
<mat-icon class="material-symbols-outlined text-primary">add</mat-icon>
&nbsp;<span translate="">{{
additionalConstraintsButtonLabel
}}</span></gn-ui-button
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { ButtonComponent, UiInputsModule } from '@geonetwork-ui/ui/inputs'
import { map, Observable } from 'rxjs'
import { marker } from '@biesbjerg/ngx-translate-extract-marker'
import { TranslateModule } from '@ngx-translate/core'
import { MatIconModule } from '@angular/material/icon'

marker('editor.record.form.constraint.add.legalConstraints')
marker('editor.record.form.constraint.add.securityConstraints')
Expand All @@ -35,6 +36,7 @@ marker('editor.record.form.constraint.header.otherConstraints')
UiInputsModule,
ButtonComponent,
TranslateModule,
MatIconModule,
],
templateUrl: './form-field-constraints.component.html',
styleUrls: ['./form-field-constraints.component.css'],
Expand Down Expand Up @@ -84,6 +86,7 @@ export class FormFieldConstraintsComponent implements OnInit {
handleURLChange(url: URL, index: number) {
const updatedConstraints = [...this.value]
updatedConstraints[index].url = url
console.log('updatedConstraints', updatedConstraints)
this.valueChange.emit(updatedConstraints)
}

Expand Down

0 comments on commit 183a6e9

Please sign in to comment.