1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-09 05:57:40 +02:00
bitwarden-browser/src/app/vault/ciphers.component.ts

26 lines
691 B
TypeScript
Raw Normal View History

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
}