Skip to content

Commit

Permalink
Show success notification on saving application or control
Browse files Browse the repository at this point in the history
  • Loading branch information
Nfactor26 committed Dec 25, 2022
1 parent 8d320c4 commit bebc019
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ await this.eventAggregator.PublishOnUIThreadAsync(new PropertyGridObjectEventArg
try
{
await SaveApplicationAsync(applicationDescriptionViewModel);
await notificationManager.ShowSuccessNotificationAsync("Application was saved");
}
catch (Exception ex)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -343,10 +343,11 @@ await this.eventAggregator.PublishOnUIThreadAsync(new PropertyGridObjectEventArg
try
{
await SaveControlDetails(controlToEdit, false);
await notificationManager.ShowSuccessNotificationAsync("Control was saved");
}
catch(Exception ex)
{
logger.Error(ex, "There was an error while trying to edit control : {0}", controlToEdit.ControlName);
logger.Error(ex, "There was an error while trying to save control : {0}", controlToEdit.ControlName);
await notificationManager.ShowErrorNotificationAsync(ex);
}
},
Expand Down

0 comments on commit bebc019

Please sign in to comment.