<tbody>
<tr *ngFor="let doc of documents" routerLink="/documents/{{doc.id}}">
<td>{{doc.created | customDate}}</td>
- <td>{{doc.title | documentTitle}}<app-tag [tag]="t" *ngFor="let t of doc.tags$ | async" class="ms-1"></app-tag></td>
+ <td>{{doc.title | documentTitle}}<app-tag [tag]="t" *ngFor="let t of doc.tags$ | async" class="ms-1" (click)="clickTag(t); $event.stopPropagation();"></app-tag></td>
</tr>
</tbody>
</table>
import { DocumentListViewService } from 'src/app/services/document-list-view.service'
import { ConsumerStatusService } from 'src/app/services/consumer-status.service'
import { DocumentService } from 'src/app/services/rest/document.service'
+import { PaperlessTag } from 'src/app/data/paperless-tag'
+import { FILTER_HAS_TAGS_ALL } from 'src/app/data/filter-rule-type'
@Component({
selector: 'app-saved-view-widget',
this.router.navigate(['documents'])
}
}
+
+ clickTag(tag: PaperlessTag) {
+ this.list.quickFilter([
+ { rule_type: FILTER_HAS_TAGS_ALL, value: tag.id.toString() },
+ ])
+ }
}