mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 17:17:26 +01:00
hide on card mouseleave
This commit is contained in:
parent
37b3a30619
commit
dcb17f2f21
4 changed files with 6 additions and 15 deletions
|
|
@ -32,9 +32,6 @@ export class DocumentCardSmallComponent implements OnInit {
|
|||
|
||||
moreTags: number = null
|
||||
|
||||
@Output()
|
||||
showPreview = new EventEmitter<DocumentCardSmallComponent>()
|
||||
|
||||
@ViewChild('popover') popover: NgbPopover
|
||||
|
||||
mouseOnPreview = false
|
||||
|
|
@ -91,7 +88,6 @@ export class DocumentCardSmallComponent implements OnInit {
|
|||
if (this.mouseOnPreview) {
|
||||
// show popover
|
||||
this.popoverHidden = false
|
||||
this.showPreview.emit(this)
|
||||
} else {
|
||||
this.popover.close()
|
||||
}
|
||||
|
|
@ -102,4 +98,8 @@ export class DocumentCardSmallComponent implements OnInit {
|
|||
mouseLeavePreview() {
|
||||
this.mouseOnPreview = false
|
||||
}
|
||||
|
||||
mouseLeaveCard() {
|
||||
this.popover.close()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue