Skip to content
Snippets Groups Projects
Commit ebc54aa2 authored by Kyle Doherty's avatar Kyle Doherty
Browse files

engine selection

parent 9fad3335
Branches
Tags
No related merge requests found
......@@ -153,20 +153,25 @@
}
.Connection-enginePicker {
padding: 1em 0;
margin-bottom: 1em;
margin-bottom: 1.5em;
padding-bottom: 1em;
border-bottom: 1px solid var(--border-color);
}
.Connection-enginePicker .Connection-engine {
display: inline-block;
padding: 1em;
padding: 1em 1em 1em 0;
margin-right: 1em;
}
.Connection-enginePicker .Connection-engine:hover {
cursor: pointer;
}
.Connection-engineSelected {
color: var(--brand-color);
}
.Connection-label {
font-size: 0.85em;
margin-bottom: 1em;
......
......@@ -59,6 +59,7 @@ SetupControllers.controller('SetupConnection', ['$scope', '$routeParams', '$loca
$scope.connection = {
host: "localhost",
port: defaultPorts[connectionType],
engine: 'Postgres'
}
}
......
......@@ -18,7 +18,7 @@
</div>
<div>
<ul class="Connection-enginePicker">
<li class="Connection-engine" ng-repeat="engine in engines" ng-click="setConnectionEngine(engine)" ng-class="{'Connection-engineSelected'}">
<li class="Connection-engine" ng-repeat="engine in engines" ng-click="setConnectionEngine(engine)" ng-class="{'Connection-engineSelected': connection.engine == engine }">
{{engine}}
</li>
</ul>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment