34 lines
1.2 KiB
TypeScript
34 lines
1.2 KiB
TypeScript
|
import { Location } from '@angular/common';
|
||
|
import { Component } from '@angular/core';
|
||
|
import { ActivatedRoute } from '@angular/router';
|
||
|
|
||
|
import { CipherService } from 'jslib/abstractions/cipher.service';
|
||
|
import { CollectionService } from 'jslib/abstractions/collection.service';
|
||
|
import { I18nService } from 'jslib/abstractions/i18n.service';
|
||
|
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
|
||
|
|
||
|
import { CollectionsComponent as BaseCollectionsComponent } from 'jslib/angular/components/collections.component';
|
||
|
|
||
|
@Component({
|
||
|
selector: 'app-vault-collections',
|
||
|
templateUrl: 'collections.component.html',
|
||
|
})
|
||
|
export class CollectionsComponent extends BaseCollectionsComponent {
|
||
|
constructor(collectionService: CollectionService, platformUtilsService: PlatformUtilsService,
|
||
|
i18nService: I18nService, cipherService: CipherService,
|
||
|
private route: ActivatedRoute, private location: Location) {
|
||
|
super(collectionService, platformUtilsService, i18nService, cipherService);
|
||
|
}
|
||
|
|
||
|
async ngOnInit() {
|
||
|
this.route.queryParams.subscribe(async (params) => {
|
||
|
this.cipherId = params.cipherId;
|
||
|
await super.ngOnInit();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
back() {
|
||
|
this.location.back();
|
||
|
}
|
||
|
}
|