mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 09:07:18 +01:00
selection for small cards
This commit is contained in:
parent
2374506a20
commit
7906d8fef1
5 changed files with 32 additions and 7 deletions
|
|
@ -13,7 +13,20 @@ export class DocumentCardSmallComponent implements OnInit {
|
|||
|
||||
constructor(private documentService: DocumentService) { }
|
||||
|
||||
selected = false
|
||||
_selected = false
|
||||
|
||||
get selected() {
|
||||
return this._selected
|
||||
}
|
||||
|
||||
@Input()
|
||||
set selected(value: boolean) {
|
||||
this._selected = value
|
||||
this.selectedChange.emit(value)
|
||||
}
|
||||
|
||||
@Output()
|
||||
selectedChange = new EventEmitter<boolean>()
|
||||
|
||||
@Input()
|
||||
document: PaperlessDocument
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue