Skip to content

Commit

Permalink
web app channel editor: Fix small bug
Browse files Browse the repository at this point in the history
Visibility and TV Format were occasionally showing translate string instead
of translated value.
  • Loading branch information
bennettpeter committed Dec 17, 2023
1 parent 148966c commit 581664f
Showing 1 changed file with 8 additions and 1 deletion.
Expand Up @@ -61,7 +61,8 @@ export class ChannelEditorComponent implements OnInit {
unassignedText = 'settings.chanedit.unassigned';

transDone = 0;
numTranslations = 9;
visDone = 0;
numTranslations = 10;
successCount = 0;
errorCount = 0;
selectedAdvanced = false;
Expand Down Expand Up @@ -169,6 +170,10 @@ export class ChannelEditorComponent implements OnInit {
this.translate.get(entry.prompt).subscribe(data => {
entry.prompt = data;
this.transDone++; // There will be 4 of these
this.visDone++;
if (this.visDone >= this.visibilities.length)
// notify of change
this.visibilities = [...this.visibilities]
});
});
this.translate.get(this.headingNew).subscribe(data => {
Expand All @@ -189,6 +194,8 @@ export class ChannelEditorComponent implements OnInit {
});
this.translate.get(this.tvFormats[0].prompt).subscribe(data => {
this.tvFormats[0].prompt = data;
// notify of change
this.tvFormats = [...this.tvFormats]
this.transDone++
});
}
Expand Down

0 comments on commit 581664f

Please sign in to comment.