mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-5417] Support multiple search configuration in app config json (#7096)
* [ACS-1642] Support multiple search configuration in app config json * [ci:force] unit test added * adf component added * [ci:force] check compatibility * [ci:force] * run all e2e * * revert initvalue * [ci:force] revert app config * [ci:force] docs update
This commit is contained in:
@@ -18,10 +18,10 @@
|
||||
import { Component, ViewEncapsulation, OnInit, Input } from '@angular/core';
|
||||
import { MatRadioChange } from '@angular/material/radio';
|
||||
|
||||
import { SearchWidget } from '../../search-widget.interface';
|
||||
import { SearchWidgetSettings } from '../../search-widget-settings.interface';
|
||||
import { SearchWidget } from '../../models/search-widget.interface';
|
||||
import { SearchWidgetSettings } from '../../models/search-widget-settings.interface';
|
||||
import { SearchQueryBuilderService } from '../../search-query-builder.service';
|
||||
import { SearchFilterList } from '../search-filter/models/search-filter-list.model';
|
||||
import { SearchFilterList } from '../../models/search-filter-list.model';
|
||||
|
||||
export interface SearchRadioOption {
|
||||
name: string;
|
||||
@@ -67,9 +67,11 @@ export class SearchRadioComponent implements SearchWidget, OnInit {
|
||||
const initialValue = this.getSelectedValue();
|
||||
|
||||
if (initialValue !== null) {
|
||||
this.setValue(initialValue);
|
||||
this.value = initialValue;
|
||||
this.context.queryFragments[this.id] = initialValue;
|
||||
} else if (this.startValue !== null) {
|
||||
this.setValue(initialValue);
|
||||
this.value = initialValue;
|
||||
this.context.queryFragments[this.id] = initialValue;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user