some filter fixes
This commit is contained in:
parent
3936c70226
commit
59f5a884b9
@ -100,7 +100,7 @@
|
||||
<mat-icon svgIcon="red:arrow-down"></mat-icon>
|
||||
</button>
|
||||
<div class="dot" *ngIf="hasActiveFilters"></div>
|
||||
<mat-menu #filterMenu="matMenu" xPosition="before">
|
||||
<mat-menu #filterMenu="matMenu" xPosition="before" (closed)="applyFilters()">
|
||||
<div class="filter-menu-header">
|
||||
<div
|
||||
class="all-caps-label"
|
||||
@ -110,19 +110,13 @@
|
||||
<div
|
||||
class="all-caps-label primary pointer"
|
||||
translate="file-preview.filter-menu.all.label"
|
||||
(click)="
|
||||
setAllFilters(filters, true);
|
||||
applyFilters();
|
||||
$event.stopPropagation()
|
||||
"
|
||||
(click)="setAllFilters(filters, true); $event.stopPropagation()"
|
||||
></div>
|
||||
<div
|
||||
class="all-caps-label primary pointer"
|
||||
translate="file-preview.filter-menu.none.label"
|
||||
(click)="
|
||||
setAllFilters(filters, false);
|
||||
applyFilters();
|
||||
$event.stopPropagation()
|
||||
setAllFilters(filters, false); $event.stopPropagation()
|
||||
"
|
||||
></div>
|
||||
</div>
|
||||
@ -174,7 +168,6 @@
|
||||
>
|
||||
<mat-checkbox
|
||||
[(ngModel)]="filters[key][subkey]"
|
||||
(change)="applyFilters()"
|
||||
color="primary"
|
||||
>
|
||||
<redaction-annotation-icon
|
||||
|
||||
@ -295,8 +295,6 @@ export class FilePreviewScreenComponent implements OnInit {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.applyFilters();
|
||||
}
|
||||
|
||||
public isChecked(key: string): boolean {
|
||||
|
||||
@ -280,7 +280,7 @@ export class ProjectOverviewScreenComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
public canOpenFile(fileStatus: FileStatus): boolean {
|
||||
// TODO check correct condition for this
|
||||
return !this.isError(fileStatus) && (fileStatus.status === 'PROCESSING' || true);
|
||||
return !this.isError(fileStatus) && !this.isProcessing(fileStatus);
|
||||
}
|
||||
|
||||
public toggleSortByAddedOn() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user