mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-08-12 00:19:48 +00:00
hide on card mouseleave
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user