dashboard: wait on refreshApp on submitting notes

This commit is contained in:
Johannes Zellner
2024-04-15 17:38:02 +02:00
parent 21d7438bbe
commit d36d1cf1da

View File

@@ -160,10 +160,12 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
Client.configureApp($scope.app.id, 'notes', { notes: $scope.info.notes.content }, function (error) {
if (error) return console.error('Failed to save notes.', error);
$scope.info.notes.busy = false;
$scope.info.notes.editing = false;
refreshApp($scope.app.id, function (error) {
if (error) return Client.error(error);
$scope.refreshApp($scope.app.id);
$scope.info.notes.busy = false;
$scope.info.notes.editing = false;
});
});
}
},