From 6ae81ae50b98b469a92fbed98c65c6a98ba20c3d Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Thu, 22 Jun 2017 16:14:11 -0400 Subject: [PATCH] Fix URI lib import in setup tool Move to web pack broke this --- static/js/pages/setup.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/js/pages/setup.js b/static/js/pages/setup.js index ab1938fe1..8ee89d590 100644 --- a/static/js/pages/setup.js +++ b/static/js/pages/setup.js @@ -1,3 +1,5 @@ +import * as URI from 'urijs'; + (function() { /** * The Setup page provides a nice GUI walkthrough experience for setting up Quay Enterprise. @@ -236,11 +238,10 @@ $scope.serializeDbUri = function(fields) { if (!fields['server']) { return ''; } + var uri = URI(); try { if (!fields['server']) { return ''; } if (!fields['database']) { return ''; } - - var uri = URI(); uri = uri && uri.host(fields['server']); uri = uri && uri.protocol(fields['kind']); uri = uri && uri.username(fields['username']);