diff --git a/libs/features/dynamic-navigation/status.js b/libs/features/dynamic-navigation/status.js index 51777cb4d8..601c734732 100644 --- a/libs/features/dynamic-navigation/status.js +++ b/libs/features/dynamic-navigation/status.js @@ -80,10 +80,12 @@ const createStatusWidget = (dynamicNavKey) => { const currentSource = getCurrentSource(dynamicNavSetting, storedSource, authoredSource); const dynamicNavDisableValues = getMetadata('dynamic-nav-disable'); const foundValues = foundDisableValues(); - const status = getStatus(dynamicNavSetting, foundValues.length >= 1, storedSource); - const statusWidget = createTag('div', { class: 'dynamic-nav-status' }); const groupMetaSetting = getMetadata('dynamic-nav-group') || 'Group not set'; - const groupsMatch = groupMetaSetting === window.sessionStorage.getItem('dynamicNavGroup') ? 'Yes' : 'No'; + const groupsMatch = groupMetaSetting === window.sessionStorage.getItem('dynamicNavGroup'); + const groupsMatchMessage = groupsMatch ? 'Yes' : 'No'; + const isDisabled = foundValues.length >= 1 || (!groupsMatch && groupMetaSetting !== 'Group not set'); + const status = getStatus(dynamicNavSetting, isDisabled, storedSource); + const statusWidget = createTag('div', { class: 'dynamic-nav-status' }); statusWidget.innerHTML = ` Dynamic Nav @@ -97,7 +99,7 @@ const createStatusWidget = (dynamicNavKey) => {

Status: ${status}

Setting: ${dynamicNavSetting}

Group: ${groupMetaSetting}

-

Group matches stored group: ${groupsMatch}

+

Group matches stored group: ${groupsMatchMessage}

Consumer key: ${dynamicNavKey}