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:
parent
53f31ba3b8
commit
50305e0eee
5 changed files with 104 additions and 80 deletions
15
app/helpers/volumeHelper.js
Normal file
15
app/helpers/volumeHelper.js
Normal 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;
|
||||
}]);
|
Loading…
Add table
Add a link
Reference in a new issue