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