@@ -104,30 +104,7 @@ export class ReportContainerComponent implements OnInit, OnDestroy {
104104 pinned : 'right' ,
105105 header : this . translateService . stream ( 'Actions' ) ,
106106 field : 'actions' ,
107- type : 'button' ,
108- buttons : [
109- {
110- type : 'icon' ,
111- icon : 'edit' ,
112- color : 'accent' ,
113- tooltip : this . translateService . stream ( 'Edit Case' ) ,
114- click : ( rowData : ReportCaseModel ) => this . router . navigate ( [ '/cases/edit/' + rowData . id + '/' + rowData . templateId ] , { queryParams : this . queryParams } ) ,
115- } ,
116- {
117- type : 'icon' ,
118- icon : 'picture_as_pdf' ,
119- color : 'accent' ,
120- tooltip : this . translateService . stream ( 'Download PDF' ) ,
121- click : ( rowData : ReportCaseModel ) => this . onDownloadPdf ( rowData ) ,
122- } ,
123- {
124- color : 'warn' ,
125- type : 'icon' ,
126- icon : 'delete' ,
127- tooltip : this . translateService . stream ( 'Delete Case' ) ,
128- click : ( rowData : ReportCaseModel ) => this . onShowRemoveCaseModal ( rowData ) ,
129- } ,
130- ]
107+ width : '160px' ,
131108 } ,
132109 ] ;
133110 public selectReportFiltersNameFilter$ = this . store . select ( selectReportFiltersNameFilter ) ;
@@ -254,30 +231,7 @@ export class ReportContainerComponent implements OnInit, OnDestroy {
254231 pinned : 'right' ,
255232 header : this . translateService . stream ( 'Actions' ) ,
256233 field : 'actions' ,
257- type : 'button' ,
258- buttons : [
259- {
260- type : 'icon' ,
261- icon : 'edit' ,
262- color : 'accent' ,
263- tooltip : this . translateService . stream ( 'Edit Case' ) ,
264- click : ( rowData : ReportCaseModel ) => this . router . navigate ( [ '/cases/edit/' + rowData . id + '/' + rowData . templateId ] , { queryParams : this . queryParams } ) ,
265- } ,
266- {
267- type : 'icon' ,
268- icon : 'picture_as_pdf' ,
269- color : 'accent' ,
270- tooltip : this . translateService . stream ( 'Download PDF' ) ,
271- click : ( rowData : ReportCaseModel ) => this . onDownloadPdf ( rowData ) ,
272- } ,
273- {
274- color : 'warn' ,
275- type : 'icon' ,
276- icon : 'delete' ,
277- tooltip : this . translateService . stream ( 'Delete Case' ) ,
278- click : ( rowData : ReportCaseModel ) => this . onShowRemoveCaseModal ( rowData ) ,
279- } ,
280- ]
234+ width : '160px' ,
281235 } ,
282236 ] ;
283237 }
@@ -382,30 +336,7 @@ export class ReportContainerComponent implements OnInit, OnDestroy {
382336 pinned : 'right' ,
383337 header : this . translateService . stream ( 'Actions' ) ,
384338 field : 'actions' ,
385- type : 'button' ,
386- buttons : [
387- {
388- type : 'icon' ,
389- icon : 'edit' ,
390- color : 'accent' ,
391- tooltip : this . translateService . stream ( 'Edit Case' ) ,
392- click : ( rowData : ReportCaseModel ) => this . router . navigate ( [ '/cases/edit/' + rowData . id + '/' + rowData . templateId ] , { queryParams : this . queryParams } ) ,
393- } ,
394- {
395- type : 'icon' ,
396- icon : 'picture_as_pdf' ,
397- color : 'accent' ,
398- tooltip : this . translateService . stream ( 'Download PDF' ) ,
399- click : ( rowData : ReportCaseModel ) => this . onDownloadPdf ( rowData ) ,
400- } ,
401- {
402- color : 'warn' ,
403- type : 'icon' ,
404- icon : 'delete' ,
405- tooltip : this . translateService . stream ( 'Delete Case' ) ,
406- click : ( rowData : ReportCaseModel ) => this . onShowRemoveCaseModal ( rowData ) ,
407- } ,
408- ]
339+ width : '160px' ,
409340 } ,
410341 ] ;
411342 }
@@ -522,30 +453,7 @@ export class ReportContainerComponent implements OnInit, OnDestroy {
522453 pinned : 'right' ,
523454 header : this . translateService . stream ( 'Actions' ) ,
524455 field : 'actions' ,
525- type : 'button' ,
526- buttons : [
527- {
528- type : 'icon' ,
529- icon : 'edit' ,
530- color : 'accent' ,
531- tooltip : this . translateService . stream ( 'Edit Case' ) ,
532- click : ( rowData : ReportCaseModel ) => this . router . navigate ( [ '/cases/edit/' + rowData . id + '/' + rowData . templateId ] , { queryParams : this . queryParams } ) ,
533- } ,
534- {
535- type : 'icon' ,
536- icon : 'picture_as_pdf' ,
537- color : 'accent' ,
538- tooltip : this . translateService . stream ( 'Download PDF' ) ,
539- click : ( rowData : ReportCaseModel ) => this . onDownloadPdf ( rowData ) ,
540- } ,
541- {
542- color : 'warn' ,
543- type : 'icon' ,
544- icon : 'delete' ,
545- tooltip : this . translateService . stream ( 'Delete Case' ) ,
546- click : ( rowData : ReportCaseModel ) => this . onShowRemoveCaseModal ( rowData ) ,
547- } ,
548- ]
456+ width : '160px' ,
549457 } ,
550458 ] ;
551459 }
@@ -763,6 +671,10 @@ export class ReportContainerComponent implements OnInit, OnDestroy {
763671 this . showArchiveCaseModal ( reportCaseModel ) ;
764672 }
765673
674+ onEditCase ( model : ReportCaseModel ) {
675+ this . router . navigate ( [ '/cases/edit/' + model . id + '/' + model . templateId ] , { queryParams : this . queryParams } ) ;
676+ }
677+
766678 // onDownloadPdf(model: ReportCaseModel) {
767679 // this.downloadPdf.emit(model);
768680 // }
0 commit comments