fix(endpoint-creation): clarify docker endpoint (#3148)

* fix(endpoint-creation): clarify docker endpoint

* fix(endpoint-creation): change default order
pull/3157/head
William 2019-09-11 07:24:29 +12:00 committed by Anthony Lapenna
parent 7d76bc89e7
commit 8e922dbfc6
2 changed files with 11 additions and 11 deletions

View File

@ -5,7 +5,7 @@ angular.module('portainer.app')
function ($q, $scope, $state, $filter, clipboard, EndpointService, GroupService, TagService, Notifications) {
$scope.state = {
EnvironmentType: 'docker',
EnvironmentType: 'agent',
actionInProgress: false
};

View File

@ -16,16 +16,6 @@
<div class="form-group"></div>
<div class="form-group" style="margin-bottom: 0">
<div class="boxselector_wrapper">
<div ng-click="resetEndpointURL()">
<input type="radio" id="docker_endpoint" ng-model="state.EnvironmentType" value="docker">
<label for="docker_endpoint">
<div class="boxselector_header">
<i class="fab fa-docker" aria-hidden="true" style="margin-right: 2px;"></i>
Docker
</div>
<p>Docker environment</p>
</label>
</div>
<div ng-click="resetEndpointURL()">
<input type="radio" id="agent_endpoint" ng-model="state.EnvironmentType" value="agent">
<label for="agent_endpoint">
@ -46,6 +36,16 @@
<p>Portainer Edge agent</p>
</label>
</div>
<div ng-click="resetEndpointURL()">
<input type="radio" id="docker_endpoint" ng-model="state.EnvironmentType" value="docker">
<label for="docker_endpoint">
<div class="boxselector_header">
<i class="fab fa-docker" aria-hidden="true" style="margin-right: 2px;"></i>
Docker
</div>
<p>Directly connect to the Docker API</p>
</label>
</div>
<div>
<input type="radio" id="azure_endpoint" ng-model="state.EnvironmentType" value="azure">
<label for="azure_endpoint">