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

feat(volume-creation): retrieve available drivers from the engine (#751)

This commit is contained in:
Anthony Lapenna 2017-04-01 12:18:46 +02:00 committed by GitHub
parent 53f31ba3b8
commit 50305e0eee
5 changed files with 104 additions and 80 deletions

View file

@ -0,0 +1,15 @@
angular.module('portainer.helpers')
.factory('VolumeHelper', [function VolumeHelperFactory() {
'use strict';
var helper = {};
helper.createDriverOptions = function(optionArray) {
var options = {};
optionArray.forEach(function (option) {
options[option.name] = option.value;
});
return options;
};
return helper;
}]);