X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fframework%2Fwidgets%2Fskyquake_container%2FskyquakeRouter.jsx;h=7d8daa5a3cd076526e9ac825955527a882881699;hp=fc3231d3a85d12e504855f85c544717d69ab0749;hb=03156e335275de1dafbc2a816e98006afdf249bf;hpb=f2dc2462571800e62cba969964de621dca09299c diff --git a/skyquake/framework/widgets/skyquake_container/skyquakeRouter.jsx b/skyquake/framework/widgets/skyquake_container/skyquakeRouter.jsx index fc3231d3a..7d8daa5a3 100644 --- a/skyquake/framework/widgets/skyquake_container/skyquakeRouter.jsx +++ b/skyquake/framework/widgets/skyquake_container/skyquakeRouter.jsx @@ -22,10 +22,24 @@ import { from 'react-router'; import SkyquakeContainer from 'widgets/skyquake_container/skyquakeContainer.jsx'; +/** + * This is the Skyquake App wrapper that all plugins use to be a Skyquake plugin. This + * is not a react component although it does return a react component that will be the + * app. + * This function will also set the title into the + * + * @export + * @param {any} config + * @param {any} context + * @returns a react component to be rendered manually. + */ export default function(config, context) { let routes = []; let index = null; let components = null; + + document.title = config.name || "OpenMANO"; + if (config && config.routes) { routes = buildRoutes(config.routes) function buildRoutes(routes) { @@ -83,7 +97,6 @@ export default function(config, context) { }, childRoutes: routes } - return((