Check for searchBox input to contain '@installed'

This commit is contained in:
Volodymyr 2019-02-13 12:24:07 -05:00 committed by Sandeep Somavarapu
parent 7335edca27
commit 86cf769ac2

View file

@ -435,7 +435,11 @@ export class ExtensionsViewlet extends ViewContainerViewlet implements IExtensio
protected saveState(): void {
const value = this.searchBox.getValue();
this.searchViewletState['query.value'] = value;
if (value.indexOf('@installed') >= 0) {
this.searchViewletState['query.value'] = value;
} else {
this.searchViewletState['query.value'] = '';
}
super.saveState();
}