2018-06-06 23:25:57 +02:00
|
|
|
import { Component } from '@angular/core';
|
|
|
|
|
|
|
|
import { CipherService } from 'jslib/abstractions/cipher.service';
|
|
|
|
|
|
|
|
import { CiphersComponent as BaseCiphersComponent } from 'jslib/angular/components/ciphers.component';
|
|
|
|
|
2018-06-07 23:12:11 +02:00
|
|
|
import { CipherType } from 'jslib/enums/cipherType';
|
|
|
|
|
|
|
|
import { CipherView } from 'jslib/models/view/cipherView';
|
|
|
|
|
2018-06-06 23:25:57 +02:00
|
|
|
@Component({
|
|
|
|
selector: 'app-vault-ciphers',
|
|
|
|
templateUrl: 'ciphers.component.html',
|
|
|
|
})
|
|
|
|
export class CiphersComponent extends BaseCiphersComponent {
|
2018-06-07 23:12:11 +02:00
|
|
|
cipherType = CipherType;
|
|
|
|
|
2018-06-06 23:25:57 +02:00
|
|
|
constructor(cipherService: CipherService) {
|
|
|
|
super(cipherService);
|
|
|
|
}
|
2018-06-07 23:12:11 +02:00
|
|
|
|
|
|
|
checkCipher(c: CipherView) {
|
|
|
|
(c as any).checked = !(c as any).checked;
|
|
|
|
}
|
2018-06-06 23:25:57 +02:00
|
|
|
}
|