Skip to content

Commit 74bb46f

Browse files
fix: TTA-134 Remove 'selected' column in reports file (#915)
Co-authored-by: Jimmy Jaramillo <[email protected]>
1 parent 29d76ba commit 74bb46f

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/app/modules/reports/components/time-entries-table/time-entries-table.component.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export class TimeEntriesTableComponent implements OnInit, OnDestroy, AfterViewIn
2626
selectOptionNames = [15, 30, 50, 100, 'All'];
2727
totalTimeSelected: moment.Duration;
2828
users: User[] = [];
29+
removeFirstColumn = 'th:not(:first)';
2930

3031
dtOptions: any = {
3132
scrollY: '590px',
@@ -39,14 +40,18 @@ export class TimeEntriesTableComponent implements OnInit, OnDestroy, AfterViewIn
3940
columns: ':not(.hidden-col)'
4041
},
4142
{
42-
extend: 'print'
43+
extend: 'print',
44+
exportOptions: {
45+
columns: this.removeFirstColumn,
46+
},
4347
},
4448
{
4549
extend: 'excel',
4650
exportOptions: {
4751
format: {
4852
body: this.bodyExportOptions
49-
}
53+
},
54+
columns: this.removeFirstColumn,
5055
},
5156
text: 'Excel',
5257
filename: `time-entries-${formatDate(new Date(), 'MM_dd_yyyy-HH_mm', 'en')}`
@@ -56,7 +61,8 @@ export class TimeEntriesTableComponent implements OnInit, OnDestroy, AfterViewIn
5661
exportOptions: {
5762
format: {
5863
body: this.bodyExportOptions
59-
}
64+
},
65+
columns: this.removeFirstColumn,
6066
},
6167
text: 'CSV',
6268
filename: `time-entries-${formatDate(new Date(), 'MM_dd_yyyy-HH_mm', 'en')}`

0 commit comments

Comments
 (0)