diff --git a/dashboard/src/views/app.js b/dashboard/src/views/app.js index 4c3d77cc0..962e9c7b3 100644 --- a/dashboard/src/views/app.js +++ b/dashboard/src/views/app.js @@ -148,14 +148,14 @@ angular.module('Application').controller('AppController', ['$scope', '$location' placeholder: 'Add admin notes here...', edit: function () { - $scope.info.notes.content = $scope.app.notes || $scope.app.manifest.postInstallMessage; + $scope.info.notes.content = $scope.app.notes === null ? $scope.app.manifest.postInstallMessage : $scope.app.notes; $scope.info.notes.editing = true; setTimeout(function () { document.getElementById('adminNotesTextarea').focus(); }, 1); }, dismiss: function () { - $scope.info.notes.content = $scope.app.notes || $scope.app.manifest.postInstallMessage; + $scope.info.notes.content = $scope.app.notes === null ? $scope.app.manifest.postInstallMessage : $scope.app.notes; $scope.info.notes.editing = false; }, @@ -175,7 +175,7 @@ angular.module('Application').controller('AppController', ['$scope', '$location' refreshApp($scope.app.id, function (error) { if (error) return Client.error(error); - $scope.info.notes.content = $scope.app.notes || $scope.app.manifest.postInstallMessage; + $scope.info.notes.content = $scope.app.notes === null ? $scope.app.manifest.postInstallMessage : $scope.app.notes; $scope.info.notes.busySave = false; $scope.info.notes.editing = false; }); @@ -185,7 +185,7 @@ angular.module('Application').controller('AppController', ['$scope', '$location' show: function () { $scope.info.hasOldChecklist = !!Object.keys($scope.app.checklist).find((k) => { return $scope.app.checklist[k].acknowledged; }); - $scope.info.notes.content = $scope.app.notes || $scope.app.manifest.postInstallMessage; + $scope.info.notes.content = $scope.app.notes === null ? $scope.app.manifest.postInstallMessage : $scope.app.notes; $scope.info.notes.editing = false; $scope.info.notes.busy = false; },