Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: TTA-134 Remove 'selected' column in reports file
  • Loading branch information
jimmyjaramillo committed Aug 9, 2022
commit de624f361be016721a3cfa938b7cfa613ae8e6a7
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export class TimeEntriesTableComponent implements OnInit, OnDestroy, AfterViewIn
selectOptionNames = [15, 30, 50, 100, 'All'];
totalTimeSelected: moment.Duration;
users: User[] = [];
removeFirstColumn = 'th:not(:first)';

dtOptions: any = {
scrollY: '590px',
Expand All @@ -39,14 +40,18 @@ export class TimeEntriesTableComponent implements OnInit, OnDestroy, AfterViewIn
columns: ':not(.hidden-col)'
},
{
extend: 'print'
extend: 'print',
exportOptions: {
columns: this.removeFirstColumn,
},
},
{
extend: 'excel',
exportOptions: {
format: {
body: this.bodyExportOptions
}
},
columns: this.removeFirstColumn,
},
text: 'Excel',
filename: `time-entries-${formatDate(new Date(), 'MM_dd_yyyy-HH_mm', 'en')}`
Expand All @@ -56,7 +61,8 @@ export class TimeEntriesTableComponent implements OnInit, OnDestroy, AfterViewIn
exportOptions: {
format: {
body: this.bodyExportOptions
}
},
columns: this.removeFirstColumn,
},
text: 'CSV',
filename: `time-entries-${formatDate(new Date(), 'MM_dd_yyyy-HH_mm', 'en')}`
Expand Down