Skip to content

Commit 7eb6f75

Browse files
author
Cyrille Bourgois
committed
fix(server-sidebar): update dedicated exchange config
1 parent b37c7b3 commit 7eb6f75

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

packages/manager/modules/server-sidebar/src/dedicated.constants.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,23 @@ export const MICROSOFT_CONFIG = {
144144
path: '/email/exchange',
145145
icon: 'ms-Icon ms-Icon--ExchangeLogo',
146146
loadOnState: 'app.microsoft.exchange',
147-
stateParams: ['organizationId'],
147+
stateParams: ['organization'],
148148
app: [DEDICATED],
149149
types: [
150150
{
151-
path: '/email/exchange/:organizationId/service',
151+
path: '/email/exchange/:organization/service',
152152
icon: 'ms-Icon ms-Icon--ExchangeLogo',
153-
state: 'app.microsoft.exchange',
154-
stateParams: ['organizationId', 'productId'], // TODO: state
153+
getState: ({ offer }) => {
154+
const states = {
155+
provider: 'app.microsoft.exchange.provider',
156+
dedicated: 'app.microsoft.exchange.dedicated',
157+
dedicatedCluster: 'app.microsoft.exchange.dedicatedCluster',
158+
hosted: 'app.microsoft.exchange.hosted',
159+
};
160+
161+
return states[offer];
162+
},
163+
stateParams: ['organization', 'productId'],
155164
app: [DEDICATED],
156165
},
157166
],

0 commit comments

Comments
 (0)