mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 01:33:33 +00:00
fix ciphers routing
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
</div>
|
||||
<div class="box-content">
|
||||
<a *ngFor="let c of collections" href="#" class="box-content-row" appStopClick appBlurClick
|
||||
(click)="selectCollection(f)">
|
||||
(click)="selectCollection(c)">
|
||||
{{c.name}}
|
||||
<span>{{collectionCounts.get(c.id) || 0}}</span>
|
||||
</a>
|
||||
|
||||
@@ -77,16 +77,16 @@ export class GroupingsComponent extends BaseGroupingsComponent implements OnInit
|
||||
|
||||
selectType(type: CipherType) {
|
||||
super.selectType(type);
|
||||
this.router.navigate(['/ciphers', { queryParams: { type: type } }]);
|
||||
this.router.navigate(['/ciphers'], { queryParams: { type: type } });
|
||||
}
|
||||
|
||||
selectFolder(folder: FolderView) {
|
||||
super.selectFolder(folder);
|
||||
this.router.navigate(['/ciphers', { queryParams: { folderId: folder.id } }]);
|
||||
this.router.navigate(['/ciphers'], { queryParams: { folderId: folder.id } });
|
||||
}
|
||||
|
||||
selectCollection(collection: CollectionView) {
|
||||
super.selectCollection(collection);
|
||||
this.router.navigate(['/ciphers', { queryParams: { collectionId: collection.id } }]);
|
||||
this.router.navigate(['/ciphers'], { queryParams: { collectionId: collection.id } });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user