fix(lesion-tracker): Fix routing and package building issues with Lesion Tracker

This commit is contained in:
Erik Ziegler committed 2018-10-01 14:15:29 +02:00
1 parent 539c8af98b
commit a70f1547a3
3 files changed
+1404 -780

No files matched your search

+18 -2
View File
@@ -3,10 +3,26 @@ import { Router } from 'meteor/clinical:router';
import { OHIF } from 'meteor/ohif:core';
Router.configure({
layoutTemplate: 'layout',
loadingTemplate: 'layout'
loadingTemplate: 'loading'
});
// If we are running a disconnected client similar to the StandaloneViewer
// (see https://docs.ohif.org/standalone-viewer/usage.html) we don't want
// our routes to get stuck while waiting for Pub / Sub.
//
// In this case, the developer is required to add Servers and specify
// a CurrentServer with some other approach (e.g. a separate script).
if (Meteor.settings &&
Meteor.settings.public &&
Meteor.settings.public.clientOnly !== true) {
Router.waitOn(function() {
return [
Meteor.subscribe('servers'),
Meteor.subscribe('currentServer')
];
});
}
Router.onBeforeAction('loading');
Router.onBeforeAction(function() {