@antscorp/antsomi-ui 1.3.5-beta.547 → 1.3.5-beta.548
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -205,6 +205,7 @@ export const getMappingAppChildren = (args) => {
|
|
|
205
205
|
appItem.children = (_a = Object.values(HOME_MENU_ITEMS)) === null || _a === void 0 ? void 0 : _a.map(childMenuItem => {
|
|
206
206
|
var _a;
|
|
207
207
|
return (Object.assign(Object.assign({}, getInitialFeatureMenuItem({
|
|
208
|
+
menu_item_domain: appItem.menu_item_domain,
|
|
208
209
|
menu_item: childMenuItem.menu_item_code,
|
|
209
210
|
menu_item_code: childMenuItem.menu_item_code,
|
|
210
211
|
menu_item_name: childMenuItem.menu_item_name,
|
|
@@ -38,7 +38,7 @@ import { HeaderV2, AccessDenied } from '../../molecules';
|
|
|
38
38
|
// Contexts
|
|
39
39
|
import { AppConfigContext } from '../../..';
|
|
40
40
|
// Constants
|
|
41
|
-
import { APP_CODES, APP_IAM_DOMAIN, APP_PERMISSION_DOMAIN,
|
|
41
|
+
import { APP_CODES, APP_IAM_DOMAIN, APP_PERMISSION_DOMAIN, CDP_ROUTE, IAM_API, PERMISSION_API, PORTALS_IDS, SOCKET_API, UOGS_PREFIX, } from '../../../constants';
|
|
42
42
|
import { ENV } from '@antscorp/antsomi-ui/es/config';
|
|
43
43
|
// Css
|
|
44
44
|
import '@antscorp/processing-notification/dist/index.css';
|
|
@@ -213,14 +213,14 @@ export const Layout = memo(props => {
|
|
|
213
213
|
var _a;
|
|
214
214
|
switch (type) {
|
|
215
215
|
case 'forecast_name': {
|
|
216
|
-
const cdpDomain =
|
|
216
|
+
const cdpDomain = CDP_ROUTE[env || 'development'];
|
|
217
217
|
const portalId = get(data, 'row.network_id', '');
|
|
218
218
|
const notificationId = get(data, 'row._id', '');
|
|
219
219
|
if (cdpDomain && portalId && notificationId) {
|
|
220
220
|
const searchParams = new URLSearchParams();
|
|
221
221
|
searchParams.set('use', 'forecast-segment');
|
|
222
222
|
searchParams.set('notification-id', notificationId);
|
|
223
|
-
const url = `${cdpDomain}gen2/${portalId}/profile/segments?${searchParams.toString()}`;
|
|
223
|
+
const url = `${cdpDomain}/gen2/${portalId}/profile/segments?${searchParams.toString()}`;
|
|
224
224
|
window.open(url, '_blank', 'noopener,noreferrer');
|
|
225
225
|
}
|
|
226
226
|
else {
|