All files / src/app/app-root/legal-notice legal-notice.component.ts

12.5% Statements 1/8
100% Branches 0/0
0% Functions 0/3
14.28% Lines 1/7

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31                      1x                                      
import { Component, Inject, OnInit } from '@angular/core';
import { MainDataService } from '../../shared/shared.module';
import { ServiceStatus } from '../../shared/interfaces/service-status.interfaces';
 
@Component({
  templateUrl: './legal-notice.component.html',
  styles: [
    'mat-card { width: 500px; }',
    'ul { margin-top: 0; }'
  ]
})
export class LegalNoticeComponent implements OnInit {
  readonly translations: { [status in ServiceStatus]: string } = {
    on: 'An',
    off: 'Aus',
    unreachable: 'Nicht erreichbar',
    unknown: 'Unbekannt'
  };
 
  constructor(
    @Inject('IS_PRODUCTION_MODE') public isProductionMode: boolean,
    @Inject('BACKEND_URL') public backendUrl: string,
    public mds: MainDataService
  ) { }
 
  ngOnInit(): void {
    setTimeout(() => this.mds.appSubTitle$.next('Impressum/Datenschutz'));
    this.mds.refreshSysStatus();
  }
}