mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-05-01 11:19:32 -05:00
Use body as container, allow link
This commit is contained in:
parent
432d81845e
commit
7f233dad94
@ -1,5 +1,5 @@
|
|||||||
<a [href]="previewUrl" target="_blank" class="{{btn_classes}}"
|
<a [href]="link ?? previewUrl" target="_blank" class="{{btn_classes}}"
|
||||||
[ngbPopover]="previewContent" [popoverTitle]="document.title | documentTitle"
|
[ngbPopover]="previewContent" [popoverTitle]="document.title | documentTitle" container="body"
|
||||||
autoClose="true" [popoverClass]="popoverClass" (mouseenter)="mouseEnterPreview()" (mouseleave)="mouseLeavePreview()" #popover="ngbPopover">
|
autoClose="true" [popoverClass]="popoverClass" (mouseenter)="mouseEnterPreview()" (mouseleave)="mouseLeavePreview()" #popover="ngbPopover">
|
||||||
<ng-content></ng-content>
|
<ng-content></ng-content>
|
||||||
</a>
|
</a>
|
||||||
|
@ -27,6 +27,9 @@ export class PreviewPopupComponent implements OnDestroy {
|
|||||||
@Input()
|
@Input()
|
||||||
btn_classes: string = 'btn btn-sm btn-outline-secondary'
|
btn_classes: string = 'btn btn-sm btn-outline-secondary'
|
||||||
|
|
||||||
|
@Input()
|
||||||
|
link: string
|
||||||
|
|
||||||
unsubscribeNotifier: Subject<any> = new Subject()
|
unsubscribeNotifier: Subject<any> = new Subject()
|
||||||
|
|
||||||
error = false
|
error = false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user