Allow filtering by document metadata

This commit is contained in:
Michael Shamoon
2022-03-27 00:08:08 -07:00
parent b67b2f04d9
commit 22a90363f6
8 changed files with 20 additions and 5 deletions

View File

@@ -17,7 +17,7 @@
<div class="d-flex justify-content-between align-items-center">
<h5 class="card-title">
<ng-container *ngIf="document.correspondent">
<a *ngIf="clickCorrespondent.observers.length ; else nolink" [routerLink]="[]" title="Filter by correspondent" i18n-title (click)="clickCorrespondent.emit(document.correspondent);$event.stopPropagation()" class="fw-bold btn-link">{{(document.correspondent$ | async)?.name}}</a>
<a *ngIf="clickCorrespondent.observers.length ; else nolink" title="Filter by correspondent" i18n-title (click)="clickCorrespondent.emit(document.correspondent);$event.stopPropagation()" class="fw-bold btn-link">{{(document.correspondent$ | async)?.name}}</a>
<ng-template #nolink>{{(document.correspondent$ | async)?.name}}</ng-template>:
</ng-container>
{{document.title | documentTitle}}

View File

@@ -90,3 +90,7 @@ span ::ng-deep .match {
color: black;
background-color: rgb(255, 211, 66);
}
a {
cursor: pointer;
}