refactor(epg): convert epg-description to standalone component

This commit is contained in:
4gray committed 2024-04-01 23:28:28 +02:00
1 parent b046985395
commit e793855266
3 files changed
+8 -3

No files matched your search

@@ -7,7 +7,7 @@
{{ 'EPG.PROGRAM_DIALOG.TITLE' | translate }}
</div>
<p data-test="title">{{ epgProgram.title[0].value }}</p>
<div class="subheading-2">
<div class="subheading-2" *ngIf="epgProgram.title[0].lang">
{{ 'EPG.PROGRAM_DIALOG.LANGUAGE' | translate }}
</div>
<p data-test="lang">{{ epgProgram.title[0].lang }}</p>
@@ -1,11 +1,16 @@
import { NgIf } from '@angular/common';
import { Component, Inject } from '@angular/core';
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
import { MatButtonModule } from '@angular/material/button';
import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
import { TranslateModule } from '@ngx-translate/core';
import { EpgProgram } from './../../../models/epg-program.model';
@Component({
standalone: true,
selector: 'app-epg-item-description',
templateUrl: './epg-item-description.component.html',
styleUrls: ['./epg-item-description.component.scss'],
imports: [MatButtonModule, MatDialogModule, NgIf, TranslateModule],
})
export class EpgItemDescriptionComponent {
/** EPG program object */
+1 -1
View File
@@ -25,6 +25,7 @@ const routes: Routes = [{ path: '', component: VideoPlayerComponent }];
ChannelListContainerComponent,
ChannelListItemComponent,
CommonModule,
EpgItemDescriptionComponent,
HtmlVideoPlayerComponent,
OverlayModule,
RouterModule.forChild(routes),
@@ -32,7 +33,6 @@ const routes: Routes = [{ path: '', component: VideoPlayerComponent }];
VjsPlayerComponent,
],
declarations: [
EpgItemDescriptionComponent,
EpgListComponent,
EpgListItemComponent,
InfoOverlayComponent,