Refactoring servers configuration structure

This commit is contained in:
Bruno Alves de Faria authored and Erik Ziegler committed 2016-08-04 16:47:10 +02:00
1 parent 624d2aeaf5
commit b33ce54188
20 files changed
+173 -118

No files matched your search

@@ -6,12 +6,12 @@ function parseUrl(url) {
Template.serverInformationModal.helpers({
serverInformation: function() {
// TODO: change for Collections
var defaultServiceType = Meteor.settings && Meteor.settings.defaultServiceType || 'dicomWeb';
var serviceInfo = Meteor.settings[defaultServiceType];
var serviceInfo = Meteor.settings.servers[defaultServiceType];
if (defaultServiceType === 'dicomWeb') {
var serverInformationDicom = [];
var endpoints = serviceInfo['endpoints'];
endpoints.forEach(function(endpoint) {
serviceInfo.forEach(function(endpoint) {
var parsedUrl = parseUrl(endpoint.qidoRoot);
serverInformationDicom.push({
host: parsedUrl.hostname,