1
0
Fork 0
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)

* #476 fix(UX): Rename 'local' endpoint doesn't overwrite "unix://"

* #477 fix(PR): Rename 'TYPE' in 'type'
This commit is contained in:
Kilhog 2017-01-12 06:44:53 +01:00 committed by Anthony Lapenna
parent 27e584fc14
commit cd26051144
2 changed files with 4 additions and 3 deletions

View file

@ -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();