From 3b926837d8ff59ef4ae40920c9b719249b05e83e Mon Sep 17 00:00:00 2001 From: genja Date: Tue, 21 Jul 2026 13:51:37 +0200 Subject: [PATCH] adjusted legend visibility query params --- .../keywords-search/keywords-search.component.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/webapp/src/app/modules/keywords-search/keywords-search.component.ts b/webapp/src/app/modules/keywords-search/keywords-search.component.ts index b698ea4e..1e30196d 100644 --- a/webapp/src/app/modules/keywords-search/keywords-search.component.ts +++ b/webapp/src/app/modules/keywords-search/keywords-search.component.ts @@ -962,8 +962,8 @@ export class KeywordsSearchComponent { const selected = this.parseKeywordList(queryParams.get('selected')); const source = queryParams.get('source') ?? ''; const view = queryParams.get('view') ?? 'llm'; - const legend = queryParams.get('legend') ?? 'on'; - const legendExpanded = queryParams.get('legendExpanded') ?? 'off'; + const legend = queryParams.get('legend') === 'true'; + const legendExpanded = queryParams.get('legendExpanded') === 'true'; const fuzzy = queryParams.get('fuzzy') === 'true'; this.isRestoringState = true; this.form.patchValue( @@ -975,8 +975,8 @@ export class KeywordsSearchComponent { { emitEvent: false }, ); this.keywordView.set(view as KeywordView); - this.subfieldLegendVisible.set(legend === 'on'); - this.subfieldLegendExpanded.set(legendExpanded === 'on'); + this.subfieldLegendVisible.set(legend); + this.subfieldLegendExpanded.set(legendExpanded); this.extractionSource.set(source as InputMode); this.topicMappingSearch.set(fuzzy); this.restoreStateFromSession(); @@ -1036,8 +1036,8 @@ export class KeywordsSearchComponent { url: this.toNullableParam(this.form.controls.urlInput.value), text: this.toNullableParam(this.form.controls.textInput.value), view: this.keywordView(), - legend: this.subfieldLegendVisible() ? 'on' : 'off', - legendExpanded: this.subfieldLegendExpanded() ? 'on' : 'off', + legend: this.subfieldLegendVisible() ? 'true' : 'false', + legendExpanded: this.subfieldLegendExpanded() ? 'true' : 'false', broad: this.serializeKeywords( this.getKeywordLabels(this.broadKeywords()), ),