File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed
Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff 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 ] ,
You can’t perform that action at this time.
0 commit comments