dashboard: wait on refreshApp on submitting notes
This commit is contained in:
@@ -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;
|
||||
});
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user