2018-01-24 04:21:14 +01:00
|
|
|
import {
|
|
|
|
Component,
|
|
|
|
OnChanges,
|
|
|
|
} from '@angular/core';
|
|
|
|
|
2018-01-26 22:13:58 +01:00
|
|
|
import { ToasterService } from 'angular2-toaster';
|
2018-02-08 16:37:54 +01:00
|
|
|
import { Angulartics2 } from 'angulartics2';
|
2018-01-26 18:32:30 +01:00
|
|
|
|
2018-02-28 17:35:48 +01:00
|
|
|
import { AuditService } from 'jslib/abstractions/audit.service';
|
2018-01-24 06:06:05 +01:00
|
|
|
import { CipherService } from 'jslib/abstractions/cipher.service';
|
2018-01-25 20:25:44 +01:00
|
|
|
import { CryptoService } from 'jslib/abstractions/crypto.service';
|
|
|
|
import { I18nService } from 'jslib/abstractions/i18n.service';
|
|
|
|
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
|
2018-01-25 05:26:40 +01:00
|
|
|
import { TokenService } from 'jslib/abstractions/token.service';
|
|
|
|
import { TotpService } from 'jslib/abstractions/totp.service';
|
2018-01-24 06:06:05 +01:00
|
|
|
|
2018-04-06 05:50:06 +02:00
|
|
|
import { ViewComponent as BaseViewComponent } from 'jslib/angular/components/view.component';
|
2018-01-24 18:20:01 +01:00
|
|
|
|
2018-01-24 04:21:14 +01:00
|
|
|
@Component({
|
|
|
|
selector: 'app-vault-view',
|
2018-04-06 18:25:22 +02:00
|
|
|
templateUrl: 'view.component.html',
|
2018-01-24 04:21:14 +01:00
|
|
|
})
|
2018-04-06 05:50:06 +02:00
|
|
|
export class ViewComponent extends BaseViewComponent implements OnChanges {
|
|
|
|
constructor(cipherService: CipherService, totpService: TotpService,
|
|
|
|
tokenService: TokenService, toasterService: ToasterService,
|
|
|
|
cryptoService: CryptoService, platformUtilsService: PlatformUtilsService,
|
|
|
|
i18nService: I18nService, analytics: Angulartics2,
|
|
|
|
auditService: AuditService) {
|
|
|
|
super(cipherService, totpService, tokenService, toasterService, cryptoService, platformUtilsService,
|
|
|
|
i18nService, analytics, auditService);
|
2018-01-25 17:28:52 +01:00
|
|
|
}
|
|
|
|
|
2018-04-06 05:50:06 +02:00
|
|
|
async ngOnChanges() {
|
|
|
|
await super.load();
|
2018-01-25 05:26:40 +01:00
|
|
|
}
|
2018-01-24 04:21:14 +01:00
|
|
|
}
|