diff --git a/src/injectscripts/teams/create.js b/src/injectscripts/teams/create.js index 46afd9f0..571f4ece 100644 --- a/src/injectscripts/teams/create.js +++ b/src/injectscripts/teams/create.js @@ -302,7 +302,7 @@ function whenLighthouseIsReady(cb) { } function initRecentActivationsFieldset() { - if (!isProductionBeaconApi()) return; // no mams data outside prod + var isProd = isProductionBeaconApi(); var $existingFieldset = $('#teamMemberSearch').closest('fieldset'); if (!$existingFieldset.length) return; @@ -312,13 +312,16 @@ function initRecentActivationsFieldset() { '' + '' + 'Recent myAvailability Activation Requests' + - '' + '' + '
' + '
' + - '
Click Refresh to load recent activations for the assigned unit.
' + + '
' + + (isProd ? 'Click Refresh to load recent activations for the assigned unit.' : + 'myAvailability activation requests are only available on production Beacon (this is train/dev).') + + '
' + '
' + '
' + '' @@ -329,6 +332,8 @@ function initRecentActivationsFieldset() { $fieldset.find('#lighthouseRecentActivationsLogo').attr('src', lighthouseUrl + 'icons/lh-black.png'); }); + if (!isProd) return; // placeholder only - no mams data outside prod + var $list = $fieldset.find('.lighthouse-recent-activations-list'); function loadForEntity(entity) {