Skip to content

Commit 6a137a0

Browse files
rofarinangoRodrigo Farinango
andauthored
fix: TT-362-pagination-problem-solved (#801)
Co-authored-by: Rodrigo Farinango <[email protected]>
1 parent d283ed7 commit 6a137a0

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/app/modules/time-entries/pages/time-entries.component.html

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@
4040
</app-calendar>
4141
</div>
4242
</div>
43-
43+
4444
<div id="listView" [hidden]="displayGridView">
45-
<table
45+
<table
4646
class="table table-sm table-striped mb-0"
4747
datatable
4848
[dtTrigger]="dtTrigger"
49-
[dtOptions]="dtOptions"
49+
[dtOptions]="dtOptions"
5050
*ngIf="(timeEntriesDataSource$ | async) as dataSource">
5151
<caption></caption>
5252
<thead class="thead-blue">
@@ -62,9 +62,6 @@
6262
</thead>
6363
<app-loading-bar *ngIf="dataSource.isLoading"></app-loading-bar>
6464
<tbody *ngIf="!dataSource.isLoading">
65-
<tr *ngIf="!dataSource?.data.length">
66-
<td class="text-center" colspan="7">{{NO_DATA_MESSAGE}}</td>
67-
</tr>
6865
<tr class="d-flex" *ngFor="let entry of dataSource.data">
6966
<td class="col">{{ entry.start_date | date: 'MM/dd/yyyy' }}</td>
7067
<td class="col">{{ entry.start_date | date: 'HH:mm' }} - {{ entry.end_date | date: 'HH:mm' }}</td>

src/app/modules/time-entries/pages/time-entries.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ export class TimeEntriesComponent implements OnInit, OnDestroy, AfterViewInit {
5050
isActiveEntryOverlapping = false;
5151
calendarView: CalendarView = CalendarView.Month;
5252
actualDate: Date;
53-
readonly NO_DATA_MESSAGE: string = 'No data available in table';
5453
constructor(
5554
private store: Store<EntryState>,
5655
private toastrService: ToastrService,

0 commit comments

Comments
 (0)