TSK-1493: Small changes in task-history-query

TSK-1493:
This commit is contained in:
Sofie Hofmann 2020-12-21 15:08:06 +01:00
parent f42f79ef69
commit 149aae8e85
5 changed files with 122 additions and 122 deletions

View File

@ -127,12 +127,12 @@ export class AccessItemsManagementComponent implements OnInit {
filterAccessItems() {
if (this.accessItemsForm.value.accessIdFilter) {
this.accessItems = this.accessItems.filter((value) =>
value.accessName.toLowerCase().includes(this.accessItemsForm.value.accessIdFilter)
value.accessName.toLowerCase().includes(this.accessItemsForm.value.accessIdFilter.toLowerCase())
);
}
if (this.accessItemsForm.value.workbasketKeyFilter) {
this.accessItems = this.accessItems.filter((value) =>
value.workbasketKey.toLowerCase().includes(this.accessItemsForm.value.workbasketKeyFilter)
value.workbasketKey.toLowerCase().includes(this.accessItemsForm.value.workbasketKeyFilter.toLowerCase())
);
}
}

View File

@ -169,7 +169,6 @@ export class WorkbasketAccessItemsComponent implements OnInit, OnChanges, OnDest
}
ngOnChanges(changes?: SimpleChanges) {
console.log('change');
if (changes.action) {
this.setBadge();
}

View File

@ -3,7 +3,7 @@ import { TaskHistoryEventResourceData } from 'app/shared/models/task-history-eve
import { QueryParameters } from 'app/shared/models/query-parameters';
import { TaskanaQueryParameters } from 'app/shared/util/query-parameters';
import { Sorting, TaskHistoryQuerySortParameter } from 'app/shared/models/sorting';
import { Observable, of } from 'rxjs';
import { Observable } from 'rxjs';
import { HttpClient } from '@angular/common/http';
import { StartupService } from '../../../shared/services/startup/startup.service';
import { TaskHistoryQueryFilterParameter } from '../../../shared/models/task-history-query-filter-parameter';

View File

@ -1,6 +1,5 @@
<div class="example-container mat-elevation-z8">
<div class="example-table-container">
<table mat-table [dataSource]="data" class="example-table"
<div class="task-history-query">
<table mat-table [dataSource]="data"
matSort matSortActive="created" matSortDisableClear matSortDirection="asc">
<ng-container matColumnDef="parentBusinessProcessId">
@ -134,6 +133,7 @@
<tr mat-row *matRowDef="let row; columns: getDisplayColumns()"></tr>
</table>
<div class="task-history-query__pagination-wrapper">
<taskana-shared-pagination [numberOfItems]="data.length"
[page]="pageInformation"></taskana-shared-pagination>
</div>

View File

@ -1,12 +1,13 @@
.example-loading-shade {
.task-history-query {
height: calc(100vh - 56px);
width: auto;
overflow-x: scroll;
overflow-y: auto;
&__pagination-wrapper {
position: absolute;
top: 0;
left: 0;
bottom: 56px;
right: 0;
background: rgba(0, 0, 0, 0.15);
z-index: 1;
display: flex;
align-items: center;
justify-content: center;
bottom: 16px;
width: 100%;
}
}