Merge branch 'dev' into feature-permissions

This commit is contained in:
Michael Shamoon
2022-12-09 17:54:14 -08:00
12 changed files with 36 additions and 34 deletions

View File

@@ -11,9 +11,9 @@
</tr>
</thead>
<tbody *ifPermissions="{ action: PermissionAction.View, type: PermissionType.Document }">
<tr *ngFor="let doc of documents" (click)="openDocumentsService.openDocument(doc)">
<td>{{doc.created_date | customDate}}</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 *ngFor="let doc of documents">
<td><a routerLink="/documents/{{doc.id}}" class="d-block text-dark text-decoration-none">{{doc.created_date | customDate}}</a></td>
<td><a routerLink="/documents/{{doc.id}}" class="d-block text-dark text-decoration-none">{{doc.title | documentTitle}}<app-tag [tag]="t" *ngFor="let t of doc.tags$ | async" class="ms-1" (click)="clickTag(t, $event)"></app-tag></a></td>
</tr>
</tbody>
</table>

View File

@@ -7,6 +7,6 @@ th:first-child {
width: 25%;
}
tbody tr {
tbody app-tag {
cursor: pointer;
}

View File

@@ -78,7 +78,9 @@ export class SavedViewWidgetComponent
}
}
clickTag(tag: PaperlessTag) {
clickTag(tag: PaperlessTag, event: MouseEvent) {
event.preventDefault()
this.list.quickFilter([
{ rule_type: FILTER_HAS_TAGS_ALL, value: tag.id.toString() },
])