Skip to content

Commit

Permalink
Read new 'custom DEF' option for connector prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
jst-cyr committed Mar 18, 2024
1 parent b6d4b10 commit 2c4b38a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/lib/GameContextParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,8 @@ export class GameContextParser {
dynamics365commerce: false,
dynamics365sales: false,
komfo: false,
sharepoint: false
sharepoint: false,
customDEF: false,
};
}
//If they didn't select None, read the rest of their selections
Expand All @@ -265,6 +266,7 @@ export class GameContextParser {
outcomeConditions.connectorsUsed.dynamics365sales = connectorsUsedOptions.value.includes('xp-connect-dynamics365sales');
outcomeConditions.connectorsUsed.komfo = connectorsUsedOptions.value.includes('xp-komfo');
outcomeConditions.connectorsUsed.sharepoint = connectorsUsedOptions.value.includes('xp-sharepoint');
outcomeConditions.connectorsUsed.customDEF = connectorsUsedOptions.value.includes('connect-custom-def');
}

}
Expand Down
4 changes: 3 additions & 1 deletion src/models/OutcomeConditions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export interface IConnectorsUsed {
dynamics365sales: boolean,
komfo: boolean,
sharepoint: boolean,
customDEF: boolean,
}

export enum ExperienceEdgeOption {
Expand Down Expand Up @@ -184,7 +185,8 @@ export class OutcomeConditions {
dynamics365commerce: false,
dynamics365sales: false,
komfo: false,
sharepoint: false
sharepoint: false,
customDEF: false
};

//If a gameInfoContext was provided, initialize all data from the answers in the context
Expand Down

0 comments on commit 2c4b38a

Please sign in to comment.