diff --git a/dashboard/src/views/services.html b/dashboard/src/views/services.html
index 962a74194..15febb85f 100644
--- a/dashboard/src/views/services.html
+++ b/dashboard/src/views/services.html
@@ -16,7 +16,11 @@
-
+
+
+
diff --git a/dashboard/src/views/services.js b/dashboard/src/views/services.js
index f2e8f9e92..6580ecd56 100644
--- a/dashboard/src/views/services.js
+++ b/dashboard/src/views/services.js
@@ -75,7 +75,6 @@ angular.module('Application').controller('ServicesController', ['$scope', '$loca
$scope.serviceConfigure.reset();
$scope.serviceConfigure.service = service;
- $scope.serviceConfigure.memoryLimit = service.config.memoryLimit;
$scope.serviceConfigure.recoveryMode = !!service.config.recoveryMode;
$scope.serviceConfigure.memoryTicks = [];
@@ -88,6 +87,11 @@ angular.module('Application').controller('ServicesController', ['$scope', '$loca
$scope.serviceConfigure.memoryTicks.push(i * 1024 * 1024);
}
+ // for firefox widget update
+ $timeout(function() {
+ $scope.serviceConfigure.memoryLimit = service.config.memoryLimit;
+ }, 500);
+
$('#serviceConfigureModal').modal('show');
},
@@ -96,7 +100,7 @@ angular.module('Application').controller('ServicesController', ['$scope', '$loca
$scope.serviceConfigure.error = null;
var data = {
- memoryLimit: $scope.serviceConfigure.memoryLimit,
+ memoryLimit: parseInt($scope.serviceConfigure.memoryLimit),
recoveryMode: $scope.serviceConfigure.recoveryMode
};