Skip to content

Commit bebc019

Browse files
committed
Show success notification on saving application or control
1 parent 8d320c4 commit bebc019

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Pixel.Automation.AppExplorer.ViewModels/Application/ApplicationExplorerViewModel.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ await this.eventAggregator.PublishOnUIThreadAsync(new PropertyGridObjectEventArg
227227
try
228228
{
229229
await SaveApplicationAsync(applicationDescriptionViewModel);
230+
await notificationManager.ShowSuccessNotificationAsync("Application was saved");
230231
}
231232
catch (Exception ex)
232233
{

src/Pixel.Automation.AppExplorer.ViewModels/Control/ControlExplorerViewModel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,10 +343,11 @@ await this.eventAggregator.PublishOnUIThreadAsync(new PropertyGridObjectEventArg
343343
try
344344
{
345345
await SaveControlDetails(controlToEdit, false);
346+
await notificationManager.ShowSuccessNotificationAsync("Control was saved");
346347
}
347348
catch(Exception ex)
348349
{
349-
logger.Error(ex, "There was an error while trying to edit control : {0}", controlToEdit.ControlName);
350+
logger.Error(ex, "There was an error while trying to save control : {0}", controlToEdit.ControlName);
350351
await notificationManager.ShowErrorNotificationAsync(ex);
351352
}
352353
},

0 commit comments

Comments
 (0)