Skip to content

Commit

Permalink
Merge pull request #161 from oat-sa/fix/ms-988/audio-pci
Browse files Browse the repository at this point in the history
MS-988 feature: add review mode flag for PCIs
  • Loading branch information
dresha-dev authored Mar 26, 2021
2 parents 18886c3 + 7df670b commit 06cd0eb
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ const getData = (customInteraction, data) => {
let markup = data.markup;
const isInteractionDisabled = isInteractionDisabledForPci(data.typeIdentifier);

// Set review mode on for PCI
customInteraction.properties.isReviewMode = true;

//remove ns + fix media file path
markup = util.removeMarkupNamespaces(markup);
markup = PortableElement.fixMarkupMediaSources(markup, this);
Expand All @@ -39,8 +42,8 @@ const getData = (customInteraction, data) => {

/**
* Set back response for review mode
* @param {Object} interaction
* @param {Object} serializedState
* @param {Object} interaction
* @param {Object} serializedState
*/
const setState = (interaction, serializedState) => {
const pciRenderer = interaction.data('pci-renderer');
Expand Down

0 comments on commit 06cd0eb

Please sign in to comment.