Fixing TypeScript errors and adopting explanation

Explanation changed to format "formattable"
pull/7722/head
Wieland Lindenthal 5 years ago
parent b533bbd70a
commit d6c804aec6
  1. 4
      frontend/src/app/modules/grids/widgets/project-status/project-status.component.ts

@ -54,7 +54,7 @@ export const emptyPlaceholder = '-';
export class WidgetProjectStatusComponent extends AbstractWidgetComponent implements OnInit {
@ViewChild('contentContainer', { static: true }) readonly contentContainer:ElementRef;
public currentStatusCode:String = 'not_set';
public currentStatusCode:string = 'not_set';
public explanation:String = '';
public availableStatuses:any = {
on_track: this.i18n.t('js.grid.widgets.project_status.on_track'),
@ -88,7 +88,7 @@ export class WidgetProjectStatusComponent extends AbstractWidgetComponent implem
.then(([project, schema]) => {
if (project.status) {
this.currentStatusCode = project.status.code;
this.explanation = project.status.explanation;
this.explanation = project.status.explanation.html;
} else {
this.currentStatusCode = 'not_set';
this.explanation = '';

Loading…
Cancel
Save