1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-08 07:15:23 +02:00

fix(node-details): engine labels were displayed as Objects (#2858)

This commit is contained in:
baron_l 2019-05-01 22:37:24 +02:00 committed by Anthony Lapenna
parent 80c5052b55
commit 7b3ef7f1a2
2 changed files with 10 additions and 1 deletions

View file

@ -106,6 +106,15 @@ angular.module('portainer.app')
return '';
};
})
.filter('labelsToStr', function () {
'use strict';
return function (arr, separator) {
if (arr) {
return _.join(arr.map((item) => item.key + ':' + item.value), separator);
}
return '';
};
})
.filter('endpointtypename', function () {
'use strict';
return function (type) {