diff --git a/dashboard/src/views/app.html b/dashboard/src/views/app.html
index 827290ec1..8616dc358 100644
--- a/dashboard/src/views/app.html
+++ b/dashboard/src/views/app.html
@@ -797,15 +797,15 @@
-
+
-
{{ info.notes.placeholder }}
+
{{ info.notes.placeholder }}
-
-
+
+
diff --git a/dashboard/src/views/app.js b/dashboard/src/views/app.js
index ab6130fcd..703bbc924 100644
--- a/dashboard/src/views/app.js
+++ b/dashboard/src/views/app.js
@@ -142,12 +142,12 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
notes: {
busy: true,
+ busySave: false,
editing: false,
content: '',
placeholder: 'Add admin notes here...',
edit: function () {
- $scope.info.notes.busy = false;
$scope.info.notes.content = $scope.app.notes;
$scope.info.notes.editing = true;
@@ -155,13 +155,12 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
},
dismiss: function () {
- $scope.info.notes.busy = false;
$scope.info.notes.content = $scope.app.notes;
$scope.info.notes.editing = false;
},
submit: function () {
- $scope.info.notes.busy = true;
+ $scope.info.notes.busySave = true;
Client.configureApp($scope.app.id, 'notes', { notes: $scope.info.notes.content }, function (error) {
if (error) return console.error('Failed to save notes.', error);
@@ -169,8 +168,8 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
refreshApp($scope.app.id, function (error) {
if (error) return Client.error(error);
+ $scope.info.notes.busySave = false;
$scope.info.notes.editing = false;
- $scope.info.notes.busy = false;
});
});
}