1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

updated dates and password history

This commit is contained in:
Kyle Spearrin
2018-07-30 10:54:38 -04:00
parent 6db7804a3b
commit 8737f76edc
9 changed files with 121 additions and 5 deletions

View File

@@ -0,0 +1,43 @@
import { ToasterService } from 'angular2-toaster';
import { Angulartics2 } from 'angulartics2';
import { Location } from '@angular/common';
import { Component } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { CipherService } from 'jslib/abstractions/cipher.service';
import { I18nService } from 'jslib/abstractions/i18n.service';
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
import {
PasswordHistoryComponent as BasePasswordHistoryComponent,
} from 'jslib/angular/components/password-history.component';
@Component({
selector: 'app-password-history',
templateUrl: 'password-history.component.html',
})
export class PasswordHistoryComponent extends BasePasswordHistoryComponent {
constructor(cipherService: CipherService, analytics: Angulartics2,
platformUtilsService: PlatformUtilsService, i18nService: I18nService,
toasterService: ToasterService, private location: Location,
private route: ActivatedRoute) {
super(cipherService, analytics, platformUtilsService, i18nService, toasterService, window);
}
async ngOnInit() {
this.route.queryParams.subscribe(async (params) => {
if (params.cipherId) {
this.cipherId = params.cipherId;
} else {
this.close();
}
await super.ngOnInit();
});
}
close() {
this.location.back();
}
}