Skip to content

Commit

Permalink
web-app Status display: Fix error in encoders display
Browse files Browse the repository at this point in the history
Showing the same program being recorded multiple times instead of
showing each recording once.
  • Loading branch information
bennettpeter committed Jan 30, 2025
1 parent 3789c9c commit ed5d7a8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mythtv/html/apps/backend/main.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ <h2>{{ 'dashboard.recordings.heading' | translate }}</h2>
<i class="pi pi-times" (click)="resetSearch()" *ngIf="searchValue"></i>
<input type="text" pInputText id="searchValue" [(ngModel)]="searchValue" name="searchValue"
class="text-xl" placeholder="{{ 'common.search_placeholder' | translate }}"
pTooltip="{{ 'dashboard.recordings.regex' | translate }}" tooltipPosition="top" />
pTooltip="{{ 'dashboard.recordings.regex' | translate }}"
tooltipPosition="top" (keydown)="keydown($event)"/>
</span>

<button pButton pRipple icon="pi pi-search" class="p-button-text w-2rem" (click)="onFilter()"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,12 @@ export class RecordingsComponent implements OnInit {
});
}

keydown(event: KeyboardEvent) {
if (event.key == "Enter")
this.onFilter();
}


onFilter() {
this.reload();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ <h2>{{ 'dashboard.status.encoder_title' | translate }}</h2>
<ng-container *ngFor="let sub of encoders">
<ng-container *ngIf="sub.Recording && (sub.Id == encoder.Id || sub.ParentId == encoder.Id)">
<br>
'{{ encoder.Recording.Title }}' on {{ encoder.Recording.Channel.CallSign }}.
'{{ sub.Recording.Title }}' on {{ sub.Recording.Channel.CallSign }}.
{{ 'dashboard.status.endtime_text' |
translate: { EndTime: utility.formatTime(encoder.Recording.EndTime) } }}
translate: { EndTime: utility.formatTime(sub.Recording.EndTime) } }}
</ng-container>
</ng-container>
</li>
Expand Down

0 comments on commit ed5d7a8

Please sign in to comment.