Fixup form submission state for memory limit and robots
This commit is contained in:
@@ -292,6 +292,7 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
|
||||
Client.configureApp($scope.app.id, 'memory_limit', { memoryLimit: memoryLimit }, function (error) {
|
||||
if (error) return Client.error(error);
|
||||
|
||||
$scope.resources.currentMemoryLimit = $scope.resources.memoryLimit;
|
||||
$scope.resources.success = true;
|
||||
$scope.resources.busy = false;
|
||||
|
||||
@@ -334,12 +335,14 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
|
||||
error: {},
|
||||
success: false,
|
||||
|
||||
currentRobotsTxt: '',
|
||||
robotsTxt: '',
|
||||
|
||||
show: function () {
|
||||
var app = $scope.app;
|
||||
|
||||
$scope.security.robotsTxt = app.robotsTxt;
|
||||
$scope.security.currentRobotsTxt = app.robotsTxt;
|
||||
$scope.security.robotsTxt = $scope.security.currentRobotsTxt;
|
||||
},
|
||||
|
||||
submit: function () {
|
||||
@@ -349,6 +352,7 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
|
||||
Client.configureApp($scope.app.id, 'robots_txt', { robotsTxt: $scope.security.robotsTxt }, function (error,) {
|
||||
if (error) return Client.error(error);
|
||||
|
||||
$scope.security.currentRobotsTxt = $scope.security.robotsTxt;
|
||||
$scope.security.success = true;
|
||||
$scope.security.busy = false;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user