Skip to content

Commit 8ae5490

Browse files
Merge 9bff779 into 6fe13c1
2 parents 6fe13c1 + 9bff779 commit 8ae5490

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,14 @@
5454
<th class="col"></th>
5555
</tr>
5656
</thead>
57+
<tr *ngIf="dataSource.isLoading">
58+
<td class="text-center" colspan="7">{{NO_DATA_MESSAGE}}</td>
59+
</tr>
5760
<app-loading-bar *ngIf="dataSource.isLoading"></app-loading-bar>
5861
<tbody *ngIf="!dataSource.isLoading">
62+
<tr *ngIf="!dataSource?.data.length">
63+
<td class="text-center" colspan="7">{{NO_DATA_MESSAGE}}</td>
64+
</tr>
5965
<tr class="d-flex" *ngFor="let entry of dataSource.data">
6066
<td class="col">{{ entry.start_date | date: 'MM/dd/yyyy' }}</td>
6167
<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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ export class TimeEntriesComponent implements OnInit, OnDestroy {
3838
selectedYear: number;
3939
selectedMonthAsText: string;
4040
isActiveEntryOverlapping = false;
41+
readonly NO_DATA_MESSAGE: string = 'No data available in table';
42+
timeEntry: DataSource<Entry>;
4143
constructor(
4244
private store: Store<EntryState>,
4345
private toastrService: ToastrService,

0 commit comments

Comments
 (0)