adjusted legend visibility query params

This commit is contained in:
2026-07-21 13:51:37 +02:00
parent ad83def6ab
commit 3b926837d8
@@ -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()),
),