replaceState when searchtext param is read
This commit is contained in:
parent
52ac5fdeef
commit
bc0009a61c
2
jslib
2
jslib
|
@ -1 +1 @@
|
|||
Subproject commit d56c5ff4f157b346500ceb0c256e88daaf4c4684
|
||||
Subproject commit f16fc58d707b9ed55355e62440fb95185f972090
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue