1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-07-04 11:55:58 +02:00

replaceState when searchtext param is read

This commit is contained in:
Kyle Spearrin 2018-08-16 15:11:09 -04:00
parent 52ac5fdeef
commit bc0009a61c
2 changed files with 5 additions and 2 deletions

2
jslib

@ -1 +1 @@
Subproject commit d56c5ff4f157b346500ceb0c256e88daaf4c4684
Subproject commit f16fc58d707b9ed55355e62440fb95185f972090

View File

@ -1,5 +1,6 @@
import { Angulartics2 } from 'angulartics2';
import { Location } from '@angular/common';
import {
ChangeDetectorRef,
Component,
@ -68,7 +69,8 @@ export class GroupingsComponent extends BaseGroupingsComponent implements OnInit
private changeDetectorRef: ChangeDetectorRef, private route: ActivatedRoute,
private stateService: StateService, private popupUtils: PopupUtilsService,
private syncService: SyncService, private analytics: Angulartics2,
private platformUtilsService: PlatformUtilsService, private searchService: SearchService) {
private platformUtilsService: PlatformUtilsService, private searchService: SearchService,
private location: Location) {
super(collectionService, folderService);
this.noFolderListSize = platformUtilsService.isEdge() ? 25 : 100;
}
@ -110,6 +112,7 @@ export class GroupingsComponent extends BaseGroupingsComponent implements OnInit
this.searchText = this.state.searchText;
} else if (params.searchText) {
this.searchText = params.searchText;
this.location.replaceState('vault');
}
if (!this.syncService.syncInProgress) {