mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-5176] - fixed apply when no value is given (#5841)
* [ADF-5176] - added check for when values are empty for headers * [ADF-5176] - added test for the clear check
This commit is contained in:
@@ -83,6 +83,16 @@ export class SearchRadioComponent implements SearchWidget, OnInit {
|
||||
return null;
|
||||
}
|
||||
|
||||
submitValues() {
|
||||
const currentValue = this.getSelectedValue();
|
||||
this.setValue(currentValue);
|
||||
}
|
||||
|
||||
hasValidValue() {
|
||||
const currentValue = this.getSelectedValue();
|
||||
return !!currentValue;
|
||||
}
|
||||
|
||||
private setValue(newValue: string) {
|
||||
this.value = newValue;
|
||||
this.context.queryFragments[this.id] = newValue;
|
||||
|
Reference in New Issue
Block a user