Fixup form submission state for memory limit and robots

This commit is contained in:
Johannes Zellner
2019-09-13 11:12:11 +02:00
parent 4af4df9288
commit c4dfe8a723
2 changed files with 9 additions and 9 deletions

View File

@@ -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;
});