Fix URI lib import in setup tool

Move to web pack broke this
This commit is contained in:
Joseph Schorr 2017-06-22 16:14:11 -04:00
parent 4f956cc15e
commit 6ae81ae50b

View file

@ -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']);