feat(endpoint): remove the active endpoint edition restriction (#941)
parent
1e686f0428
commit
dae4893fe1
|
@ -38,7 +38,7 @@
|
||||||
<portainer-tooltip position="bottom" message="URL or IP address where exposed containers will be reachable. This field is optional and will default to the endpoint URL."></portainer-tooltip>
|
<portainer-tooltip position="bottom" message="URL or IP address where exposed containers will be reachable. This field is optional and will default to the endpoint URL."></portainer-tooltip>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-sm-9 col-lg-10">
|
<div class="col-sm-9 col-lg-10">
|
||||||
<input ng-disabled="endpointType === 'local'" type="text" class="form-control" id="endpoint_public_url" ng-model="endpoint.PublicURL" placeholder="e.g. 10.0.0.10 or mydocker.mydomain.com">
|
<input type="text" class="form-control" id="endpoint_public_url" ng-model="endpoint.PublicURL" placeholder="e.g. 10.0.0.10 or mydocker.mydomain.com">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- !endpoint-public-url-input -->
|
<!-- !endpoint-public-url-input -->
|
||||||
|
|
|
@ -183,12 +183,7 @@
|
||||||
<td>{{ endpoint.URL | stripprotocol }}</td>
|
<td>{{ endpoint.URL | stripprotocol }}</td>
|
||||||
<td>
|
<td>
|
||||||
<span ng-if="applicationState.application.endpointManagement">
|
<span ng-if="applicationState.application.endpointManagement">
|
||||||
<span ng-if="endpoint.Id !== activeEndpointID">
|
<a ui-sref="endpoint({id: endpoint.Id})"><i class="fa fa-pencil-square-o" aria-hidden="true"></i> Edit</a>
|
||||||
<a ui-sref="endpoint({id: endpoint.Id})"><i class="fa fa-pencil-square-o" aria-hidden="true"></i> Edit</a>
|
|
||||||
</span>
|
|
||||||
<span class="small text-muted" ng-if="endpoint.Id === activeEndpointID">
|
|
||||||
<i class="fa fa-lock" aria-hidden="true"></i> You cannot edit the active endpoint
|
|
||||||
</span>
|
|
||||||
</span>
|
</span>
|
||||||
<span ng-if="applicationState.application.authentication">
|
<span ng-if="applicationState.application.authentication">
|
||||||
<a ui-sref="endpoint.access({id: endpoint.Id})"><i class="fa fa-users" aria-hidden="true" style="margin-left: 7px;"></i> Manage access</a>
|
<a ui-sref="endpoint.access({id: endpoint.Id})"><i class="fa fa-users" aria-hidden="true" style="margin-left: 7px;"></i> Manage access</a>
|
||||||
|
|
|
@ -101,7 +101,6 @@ function ($scope, $state, EndpointService, EndpointProvider, Notifications, Pagi
|
||||||
EndpointService.endpoints()
|
EndpointService.endpoints()
|
||||||
.then(function success(data) {
|
.then(function success(data) {
|
||||||
$scope.endpoints = data;
|
$scope.endpoints = data;
|
||||||
$scope.activeEndpointID = EndpointProvider.endpointID();
|
|
||||||
})
|
})
|
||||||
.catch(function error(err) {
|
.catch(function error(err) {
|
||||||
Notifications.error('Failure', err, 'Unable to retrieve endpoints');
|
Notifications.error('Failure', err, 'Unable to retrieve endpoints');
|
||||||
|
|
Loading…
Reference in New Issue