Skip to content

Commit

Permalink
fix(a380x/fws): Fix inactive procedure items rendering in EWD (#9851)
Browse files Browse the repository at this point in the history
* fix(a380x/fws): Fix inactive procedure items rendering in EWD

* make procedureActivated mandatory to not have anything rendered incorrectly
  • Loading branch information
flogross89 authored Feb 11, 2025
1 parent c648868 commit f8d1666
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,10 @@ export class ProcedureLinesGenerator {
if (isChecklistAction(item)) {
text += clStyle !== ChecklistLineStyle.SubHeadline ? '-' : '';
text += item.name;
if (!this.checklistState.itemsActive[itemIndex] && clStyle === ChecklistLineStyle.ChecklistItem) {
if (
(!this.checklistState.itemsActive[itemIndex] || !this.checklistState.procedureActivated) &&
clStyle === ChecklistLineStyle.ChecklistItem
) {
clStyle = ChecklistLineStyle.ChecklistItemInactive;
}
if (this.checklistState.itemsChecked[itemIndex] && item.labelCompleted) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
export interface ChecklistState {
id: string;
procedureCompleted?: boolean;
procedureActivated?: boolean;
procedureActivated: boolean;
itemsChecked: boolean[];
itemsToShow: boolean[];
itemsActive: boolean[];
Expand Down

0 comments on commit f8d1666

Please sign in to comment.