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

#516 feat(services) - add the ability to manage cpu/mem limits

This commit is contained in:
Thomas Krzero 2017-09-20 08:32:19 +02:00 committed by Anthony Lapenna
parent d695657711
commit 3cb96235b7
13 changed files with 353 additions and 92 deletions

View file

@ -0,0 +1,22 @@
angular.module('portainer')
.controller('porSliderController', function () {
var ctrl = this;
ctrl.options = {
floor: ctrl.floor,
ceil: ctrl.ceil,
step: ctrl.step,
precision: ctrl.precision,
showSelectionBar: true,
translate: function(value, sliderId, label) {
if (label === 'floor' || value === 0) {
return 'unlimited';
}
return value;
},
onChange: function() {
ctrl.onChange();
}
};
});