summaryrefslogtreecommitdiffstats
path: root/sdnr/wt/odlux/apps/mediatorApp/src/plugin.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'sdnr/wt/odlux/apps/mediatorApp/src/plugin.tsx')
-rw-r--r--sdnr/wt/odlux/apps/mediatorApp/src/plugin.tsx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sdnr/wt/odlux/apps/mediatorApp/src/plugin.tsx b/sdnr/wt/odlux/apps/mediatorApp/src/plugin.tsx
index 0878fee65..7f440a2ae 100644
--- a/sdnr/wt/odlux/apps/mediatorApp/src/plugin.tsx
+++ b/sdnr/wt/odlux/apps/mediatorApp/src/plugin.tsx
@@ -16,7 +16,7 @@ import { MediatorApplication } from "./views/mediatorApplication";
import { MediatorServerSelection } from "./views/mediatorServerSelection";
import { initializeMediatorServerAsyncActionCreator } from "./actions/mediatorServerActions";
-let currentMediatorServerId: string | undefined = undefined;
+let currentMediatorServerId: string | undefined = undefined;
const mapDisp = (dispatcher: IDispatcher) => ({
loadMediatorServer : (mediatorServerId: string) => dispatcher.dispatch(initializeMediatorServerAsyncActionCreator(mediatorServerId)),
@@ -24,7 +24,7 @@ const mapDisp = (dispatcher: IDispatcher) => ({
const MediatorServerRouteAdapter = connect(undefined, mapDisp)((props: RouteComponentProps<{ mediatorServerId: string }> & Connect<undefined, typeof mapDisp>) => {
if (currentMediatorServerId !== props.match.params.mediatorServerId) {
- // route parameter has changed
+ // route parameter has changed
currentMediatorServerId = props.match.params.mediatorServerId || undefined;
// Hint: This timeout is need, since it is not recommended to change the state while rendering is in progress !
window.setTimeout(() => {
@@ -42,21 +42,21 @@ type AppProps = RouteComponentProps & Connect;
const App = (props: AppProps) => (
<Switch>
- <Route exact path={ `${ props.match.path }` } component={ MediatorServerSelection } />
- <Route path={ `${ props.match.path }/:mediatorServerId` } component={ MediatorServerRouteAdapter } />
+ <Route exact path={ `${ props.match.path }` } component={ MediatorServerSelection } />
+ <Route path={ `${ props.match.path }/:mediatorServerId` } component={ MediatorServerRouteAdapter } />
<Redirect to={ `${ props.match.path }` } />
</Switch>
-);
+);
const FinalApp = withRouter(connect()(App));
export function register() {
const applicationApi = applicationManager.registerApplication({
- name: "mediatorApp",
+ name: "mediator",
icon: faGlobe,
rootComponent: FinalApp,
rootActionHandler: mediatorAppRootHandler,
- menuEntry: "Mediator App"
+ menuEntry: "Mediator"
});
// prefetch all avaliable mediator servers