mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 17:47:08 +01:00
clickable tags and correspondents fixes #54
This commit is contained in:
parent
bddffbce50
commit
562d81e246
8 changed files with 91 additions and 24 deletions
|
|
@ -1,2 +1,2 @@
|
|||
<span *ngIf="!clickable" class="badge" [style.background]="getColour().value" [style.color]="getColour().textColor">{{tag.name}}</span>
|
||||
<a [routerLink]="" *ngIf="clickable" class="badge" [style.background]="getColour().value" [style.color]="getColour().textColor">{{tag.name}}</a>
|
||||
<a [routerLink]="" [title]="linkTitle" *ngIf="clickable" class="badge" [style.background]="getColour().value" [style.color]="getColour().textColor">{{tag.name}}</a>
|
||||
|
|
@ -13,6 +13,9 @@ export class TagComponent implements OnInit {
|
|||
@Input()
|
||||
tag: PaperlessTag
|
||||
|
||||
@Input()
|
||||
linkTitle: string = ""
|
||||
|
||||
@Input()
|
||||
clickable: boolean = false
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue