TimeTrex Community Edition v16.2.0
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
export class KPIReportViewController extends ReportBaseViewController {
|
||||
constructor( options = {} ) {
|
||||
_.defaults( options, {
|
||||
|
||||
} );
|
||||
|
||||
super( options );
|
||||
}
|
||||
|
||||
initReport( options ) {
|
||||
this.script_name = 'KPIReport';
|
||||
this.viewId = 'KPIReport';
|
||||
this.context_menu_name = $.i18n._( 'Review Summary' );
|
||||
this.navigation_label = $.i18n._( 'Saved Report' );
|
||||
this.view_file = 'KPIReportView.html';
|
||||
this.api = TTAPI.APIKPIReport;
|
||||
}
|
||||
|
||||
getCustomContextMenuModel() {
|
||||
var context_menu_model = {
|
||||
exclude: [],
|
||||
include: [
|
||||
{
|
||||
label: $.i18n._( 'Print' ),
|
||||
id: 'pdf_review_print',
|
||||
menu_align: 'right'
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
return context_menu_model;
|
||||
}
|
||||
|
||||
onCustomContextClick( id ) {
|
||||
switch ( id ) {
|
||||
case 'pdf_review_print': //All report view
|
||||
//this.onNavigationClick( id );
|
||||
this.onViewClick( id );
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user