bitwarden-estensione-browser/src/popup/app/components/cipher-items.component.ts

30 lines
577 B
TypeScript

import * as template from './cipher-items.component.html';
class CipherItemsController implements ng.IController {
onSelected: Function;
onView: Function;
constructor(private i18nService: any) {
}
view(cipher: any) {
return this.onView()(cipher);
}
select(cipher: any) {
return this.onSelected()(cipher);
}
}
export const CipherItemsComponent = {
bindings: {
ciphers: '<',
selectionTitle: '<',
onSelected: '&',
onView: '&',
},
controller: CipherItemsController,
template,
};