mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-12 20:16:15 -08:00
refactor(epg): convert epg-description to standalone component
This commit is contained in:
1 parent
b046985395
commit
e793855266
3 files changed
+8
-3
No files matched your search
+1
-1
@@ -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>
|
||||
|
||||
+6
-1
@@ -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 */
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user