diff --git a/CouchLog/Components/Pages/GlobalList/Dialogs/EditGlobalEntityDialog.razor b/CouchLog/Components/Pages/GlobalList/Dialogs/EditGlobalEntityDialog.razor index 2f0566b..2ce79a3 100644 --- a/CouchLog/Components/Pages/GlobalList/Dialogs/EditGlobalEntityDialog.razor +++ b/CouchLog/Components/Pages/GlobalList/Dialogs/EditGlobalEntityDialog.razor @@ -223,8 +223,8 @@ private async Task HandleDelete() { //TODO: Add Message Box - File.Delete(Path.Combine("wwwroot", _editedGlobalEntity.PicturePath)); - Dialog.Close(DialogResult.Ok((_editedGlobalEntity, true))); + File.Delete(Path.Combine("wwwroot", GlobalEntity.PicturePath)); + Dialog.Close(DialogResult.Ok((GlobalEntity, true))); } private bool CheckForChanges() @@ -242,7 +242,7 @@ var oldGenereIds = GlobalEntity.LinkTableGlobalGenres.Select(g => g.GenreId); if (!newGenresHashSet.SetEquals(oldGenereIds)) { - Snackbar.Add("Selected genre id is", Severity.Warning); + //Snackbar.Add("Selected genre id is", Severity.Warning); return true; } diff --git a/CouchLog/Components/Pages/PrivateList/Components/PrivateEntityCard.razor b/CouchLog/Components/Pages/PrivateList/Components/PrivateEntityCard.razor index fadae32..a9843f6 100644 --- a/CouchLog/Components/Pages/PrivateList/Components/PrivateEntityCard.razor +++ b/CouchLog/Components/Pages/PrivateList/Components/PrivateEntityCard.razor @@ -6,7 +6,7 @@