adds sendAdHocRequest parameter for "direct" conversation requests without a prior existing need2need connection
@@ -41,6 +41,7 @@ export const resetParams = Object.freeze({
layout: undefined,
myUri: undefined,
postUri: undefined,
+ sendAdHocRequest: undefined,
// privateId: undefined, // global parameter that we don't want to lose. never reset this one.
});
@@ -89,11 +90,11 @@ export const configRouting = [ '$urlRouterProvider', '$stateProvider', ($urlRout
{ path: '/landingpage?privateId', component: 'landingpage' },
{ path: '/create-need/?privateId', component: 'create-need' },
{ path: '/feed?privateId', component: 'feed' },
- { path: '/overview/matches?privateId?layout?myUri?connectionUri', component: 'overview-matches', as: 'overviewMatches' },
+ { path: '/overview/matches?privateId?layout?myUri?connectionUri?sendAdHocRequest', component: 'overview-matches', as: 'overviewMatches' },
{ path: '/overview/incoming-requests?privateId?myUri?connectionUri', component: 'overview-incoming-requests', as: 'overviewIncomingRequests' },
{ path: '/overview/sent-requests?privateId?myUri?connectionUri', component: 'overview-sent-requests', as: 'overviewSentRequests' },
{ path: '/overview/posts?privateId', component: 'overview-posts', as: 'overviewPosts' },
- { path: '/post/?privateId?postUri?connectionUri?connectionType?layout', component: 'post', as: 'post' },
+ { path: '/post/?privateId?postUri?connectionUri?connectionType?layout?sendAdHocRequest', component: 'post', as: 'post' },
].forEach( ({path, component, as}) => {
