Skip to content

Commit

Permalink
feat: search-header component uses header input (onecx#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
markuczy authored Mar 4, 2024
1 parent f2e7606 commit 558c590
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libs/portal-integration-angular/assets/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"OCX_SEARCH_CONFIG": {
"DROPDOWN_DEFAULT": "Gespeicherte Suchvorlage auswählen"
},
"HEADLINE": "Suche",
"HEADER": "Suche",
"RESET_BUTTON_TEXT": "Zurücksetzen",
"SEARCH_BUTTON_TEXT": "Suchen",
"EXPORT": "Alle Ereignisse exportieren"
Expand Down
2 changes: 1 addition & 1 deletion libs/portal-integration-angular/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"OCX_SEARCH_CONFIG": {
"DROPDOWN_DEFAULT": "Pick predefined template"
},
"HEADLINE": "Search",
"HEADER": "Search",
"RESET_BUTTON_TEXT": "Reset",
"SEARCH_BUTTON_TEXT": "Search",
"EXPORT": "Export all events"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<ocx-page-header
[header]="headline || ('OCX_SEARCH_HEADER.HEADLINE' | translate)"
[header]="header || ('OCX_SEARCH_HEADER.HEADER' | translate)"
[subheader]="subheader"
[manualBreadcrumbs]="manualBreadcrumbs"
[actions]="headerActions"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,18 @@ import { SearchConfig } from '../../../model/search-config'
})
export class SearchHeaderComponent implements AfterViewInit {
@Input() searchConfigs: SearchConfig[] | undefined
@Input() headline = ''
@Input() header = ''

/**
* @deprecated Will be replaced by header
*/
@Input()
get headline(): string {
return this.header
}
set headline(value: string) {
this.header = value
}
@Input() subheader: string | undefined
@Input() viewMode: 'basic' | 'advanced' = 'basic'
@Input() manualBreadcrumbs = false
Expand Down

0 comments on commit 558c590

Please sign in to comment.