From 0a82f6aa1aa36a6f961db479b0120059483bada8 Mon Sep 17 00:00:00 2001 From: Chase Porter Date: Wed, 3 Nov 2021 15:25:12 -0700 Subject: [PATCH] Reverting changes made for local development --- etc/conf.json | 5 ----- fdds/js/services.js | 6 ++---- 2 files changed, 2 insertions(+), 9 deletions(-) delete mode 100644 etc/conf.json diff --git a/etc/conf.json b/etc/conf.json deleted file mode 100644 index 35075e6..0000000 --- a/etc/conf.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "url_root" : "http://demo.openwfm.org/ch", - "organization" : "SJSU", - "flags" : ["Flag 1","Flag 2"] -} diff --git a/fdds/js/services.js b/fdds/js/services.js index 7f12b7f..372a208 100644 --- a/fdds/js/services.js +++ b/fdds/js/services.js @@ -38,12 +38,10 @@ export async function getCatalogEntries() { /** Service request for fetching a selected simulation from the menu. */ export function getSimulation(path) { - // fetch(path).then(response => response.json()).then(function(selectedSimulation) { - fetch(path.replaceAll(':', '_')).then(response => response.json()).then(function(selectedSimulation) { + fetch(path).then(response => response.json()).then(function(selectedSimulation) { // store in global state simVars.rasters = selectedSimulation; - // simVars.rasterBase = path.substring(0, path.lastIndexOf('/') + 1); - simVars.rasterBase = path.replaceAll(':', '_').substring(0, path.lastIndexOf('/') + 1); + simVars.rasterBase = path.substring(0, path.lastIndexOf('/') + 1); // retrieve all domains controllers.domainInstance.setValue(Object.keys(selectedSimulation)); }).catch(error => { -- 2.11.4.GIT