diff --git a/webadmin/src/js/index.js b/webadmin/src/js/index.js index bef1858f7..44c9f2d8a 100644 --- a/webadmin/src/js/index.js +++ b/webadmin/src/js/index.js @@ -111,6 +111,13 @@ app.filter('prettyAppMessage', function () { }; }); +app.filter('prettyMemory', function () { + return function (memory) { + // Adjust the default memory limit if it changes + return memory ? Math.floor(memory / 1024 / 1024) : 256; + }; +}); + app.filter('installationActive', function () { return function(app) { if (app.installationState === ISTATES.ERROR) return false;