mirror of
https://github.com/portainer/portainer.git
synced 2025-07-31 03:09:44 +02:00
* #476 fix(UX): Rename 'local' endpoint doesn't overwrite "unix://" * #477 fix(PR): Rename 'TYPE' in 'type'
This commit is contained in:
parent
27e584fc14
commit
cd26051144
2 changed files with 4 additions and 3 deletions
|
@ -374,11 +374,11 @@ angular.module('portainer.services', ['ngResource', 'ngSanitize'])
|
|||
endpoints: function() {
|
||||
return Endpoints.query({}).$promise;
|
||||
},
|
||||
updateEndpoint: function(ID, name, URL, TLS, TLSCAFile, TLSCertFile, TLSKeyFile) {
|
||||
updateEndpoint: function(ID, name, URL, TLS, TLSCAFile, TLSCertFile, TLSKeyFile, type) {
|
||||
var endpoint = {
|
||||
id: ID,
|
||||
Name: name,
|
||||
URL: "tcp://" + URL,
|
||||
URL: type === 'local' ? ("unix://" + URL) : ("tcp://" + URL),
|
||||
TLS: TLS
|
||||
};
|
||||
var deferred = $q.defer();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue