Skip to content

Commit

Permalink
added consistent save notifications across files, camel and dozer
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrachan committed Jul 31, 2013
1 parent fdf0fb9 commit 1f2ecae
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions hawtio-web/src/main/webapp/app/wiki/js/camel.ts
Expand Up @@ -209,6 +209,7 @@ module Wiki {
var commitMessage = $scope.commitMessage || "Updated page " + $scope.pageId;
wikiRepository.putPage($scope.branch, $scope.pageId, text, commitMessage, (status) => {
Wiki.onComplete(status);
notification("success", "Saved " + $scope.pageId);
goToView();
Core.$apply($scope);
});
Expand Down
1 change: 1 addition & 0 deletions hawtio-web/src/main/webapp/app/wiki/js/camelCanvas.ts
Expand Up @@ -94,6 +94,7 @@ module Wiki {
var commitMessage = $scope.commitMessage || "Updated page " + $scope.pageId;
wikiRepository.putPage($scope.branch, $scope.pageId, text, commitMessage, (status) => {
Wiki.onComplete(status);
notification("success", "Saved " + $scope.pageId);
goToView();
Core.$apply($scope);
});
Expand Down
2 changes: 1 addition & 1 deletion hawtio-web/src/main/webapp/app/wiki/js/dozerMappings.ts
Expand Up @@ -129,7 +129,7 @@ module Wiki {
var commitMessage = $scope.commitMessage || "Updated page " + $scope.pageId;
wikiRepository.putPage($scope.branch, $scope.pageId, text, commitMessage, (status) => {
Wiki.onComplete(status);
notification("info", "Saved " + $scope.pageId)
notification("success", "Saved " + $scope.pageId)
goToView();
Core.$apply($scope);
});
Expand Down
1 change: 1 addition & 0 deletions hawtio-web/src/main/webapp/app/wiki/js/edit.ts
Expand Up @@ -124,6 +124,7 @@ module Wiki {
//console.log("About to write contents '" + contents + "'");
wikiRepository.putPage($scope.branch, path, contents, commitMessage, (status) => {
Wiki.onComplete(status);
notification("success", "Saved " + path);
goToView();
Core.$apply($scope);
});
Expand Down

0 comments on commit 1f2ecae

Please sign in to comment.