@@ -49,29 +49,8 @@ export class ReportTableComponent implements OnInit, OnChanges, OnDestroy {
4949 {
5050 header : this . translateService . stream ( 'Actions' ) ,
5151 field : 'actions' ,
52- type : 'button' ,
53- buttons : [
54- {
55- tooltip : this . translateService . stream ( 'View images' ) ,
56- type : 'icon' ,
57- click : ( record : ReportEformItemModel ) => this . onClickViewPicture ( record . microtingSdkCaseId ) ,
58- icon : 'image' ,
59- iif : ( record : ReportEformItemModel ) => record . imagesCount !== 0 ,
60- } ,
61- {
62- tooltip : this . translateService . stream ( 'Edit' ) ,
63- type : 'icon' ,
64- click : ( record : ReportEformItemModel ) => this . onClickEditCase ( record . microtingSdkCaseId , record . eFormId , record . id ) ,
65- icon : 'edit' ,
66- } ,
67- {
68- tooltip : this . translateService . stream ( 'Delete' ) ,
69- type : 'icon' ,
70- click : ( record : ReportEformItemModel ) => this . onShowDeletePlanningCaseModal ( record ) ,
71- color : 'warn' ,
72- icon : 'delete' ,
73- }
74- ]
52+ width : '160px' ,
53+ pinned : 'right' ,
7554 } ,
7655 { header : this . translateService . stream ( 'Employee no' ) , field : 'employeeNo' } ,
7756 ] ;
@@ -87,29 +66,8 @@ export class ReportTableComponent implements OnInit, OnChanges, OnDestroy {
8766 {
8867 header : this . translateService . stream ( 'Actions' ) ,
8968 field : 'actions' ,
90- type : 'button' ,
91- buttons : [
92- {
93- tooltip : this . translateService . stream ( 'View images' ) ,
94- type : 'icon' ,
95- click : ( record : ReportEformItemModel ) => this . onClickViewPicture ( record . microtingSdkCaseId ) ,
96- icon : 'image' ,
97- iif : ( record : ReportEformItemModel ) => record . imagesCount !== 0 ,
98- } ,
99- {
100- tooltip : this . translateService . stream ( 'Edit' ) ,
101- type : 'icon' ,
102- click : ( record : ReportEformItemModel ) => this . onClickEditCase ( record . microtingSdkCaseId , record . eFormId , record . id ) ,
103- icon : 'edit' ,
104- } ,
105- {
106- tooltip : this . translateService . stream ( 'Delete' ) ,
107- type : 'icon' ,
108- click : ( record : ReportEformItemModel ) => this . onShowDeletePlanningCaseModal ( record ) ,
109- color : 'warn' ,
110- icon : 'delete' ,
111- }
112- ]
69+ width : '160px' ,
70+ pinned : 'right' ,
11371 } ,
11472 { header : this . translateService . stream ( 'Employee no' ) , field : 'employeeNo' } ,
11573 ] ;
@@ -161,9 +119,6 @@ export class ReportTableComponent implements OnInit, OnChanges, OnDestroy {
161119 let isAdmin = false ;
162120 this . selectAuthIsAdmin$ . subscribe ( ( selectAuthIsAdmin$ ) => isAdmin = selectAuthIsAdmin$ ) ;
163121 const tableHeaders = [ ...( isAdmin ? [ ...this . adminTableHeaders ] : [ ...this . tableHeaders ] ) ] ;
164- const index = tableHeaders
165- . findIndex ( x => x . field === 'actions' ) ;
166- tableHeaders [ index ] . width = this . items . filter ( x => x . imagesCount > 0 ) . length > 0 ? '160px' : '110px' ;
167122
168123 this . mergedTableHeaders = [
169124 ...tableHeaders ,
0 commit comments