diff --git a/dashboard/src/theme.scss b/dashboard/src/theme.scss index 359c506fc..6675032f0 100644 --- a/dashboard/src/theme.scss +++ b/dashboard/src/theme.scss @@ -1530,9 +1530,7 @@ div:hover > .picture-edit-indicator { } .info-edit-indicator { - position: absolute; - top: 0; - right: 0; + float: right; border-radius: 20px; padding: 5px; color: $text-dark; diff --git a/dashboard/src/views/app.html b/dashboard/src/views/app.html index c51f52a28..827290ec1 100644 --- a/dashboard/src/views/app.html +++ b/dashboard/src/views/app.html @@ -795,15 +795,15 @@
-

+

-
- +
+
{{ info.notes.placeholder }}
- +
diff --git a/dashboard/src/views/app.js b/dashboard/src/views/app.js index 2342806b0..ab6130fcd 100644 --- a/dashboard/src/views/app.js +++ b/dashboard/src/views/app.js @@ -141,14 +141,17 @@ angular.module('Application').controller('AppController', ['$scope', '$location' hasOldChecklist: false, notes: { - busy: false, + busy: true, 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; + + setTimeout(function () { document.getElementById('adminNotesTextarea').focus(); }, 1); }, dismiss: function () { @@ -166,8 +169,8 @@ angular.module('Application').controller('AppController', ['$scope', '$location' refreshApp($scope.app.id, function (error) { if (error) return Client.error(error); - $scope.info.notes.busy = false; $scope.info.notes.editing = false; + $scope.info.notes.busy = false; }); }); }