From b72103653b37f75c2376a2ef247f19d6d0540a69 Mon Sep 17 00:00:00 2001 From: filippo-ferrari Date: Tue, 10 Sep 2024 19:33:39 +0200 Subject: [PATCH] refactor: notifications --- .../com/application/munera/views/categories/CategoriesView.java | 2 +- .../java/com/application/munera/views/events/EventsView.java | 2 +- .../com/application/munera/views/expenses/ExpensesView.java | 2 +- .../java/com/application/munera/views/people/PeopleView.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/application/munera/views/categories/CategoriesView.java b/src/main/java/com/application/munera/views/categories/CategoriesView.java index 8b66bca..36e72e9 100644 --- a/src/main/java/com/application/munera/views/categories/CategoriesView.java +++ b/src/main/java/com/application/munera/views/categories/CategoriesView.java @@ -117,7 +117,7 @@ public class CategoriesView extends Div implements BeforeEnterObserver { n.setPosition(Notification.Position.MIDDLE); n.addThemeVariants(NotificationVariant.LUMO_ERROR); } catch (ValidationException validationException) { - Notification.show("Failed to update the data. Check again that all values are valid"); + Notification.show("Failed to update the category. Check again that all values are valid"); } }); diff --git a/src/main/java/com/application/munera/views/events/EventsView.java b/src/main/java/com/application/munera/views/events/EventsView.java index eb7c074..9445e21 100644 --- a/src/main/java/com/application/munera/views/events/EventsView.java +++ b/src/main/java/com/application/munera/views/events/EventsView.java @@ -119,7 +119,7 @@ public class EventsView extends Div implements BeforeEnterObserver { n.setPosition(Notification.Position.MIDDLE); n.addThemeVariants(NotificationVariant.LUMO_ERROR); } catch (ValidationException validationException) { - Notification.show("Failed to update the data. Check again that all values are valid"); + Notification.show("Failed to update the event. Check again that all values are valid"); } }); diff --git a/src/main/java/com/application/munera/views/expenses/ExpensesView.java b/src/main/java/com/application/munera/views/expenses/ExpensesView.java index b8cbcef..98f505d 100644 --- a/src/main/java/com/application/munera/views/expenses/ExpensesView.java +++ b/src/main/java/com/application/munera/views/expenses/ExpensesView.java @@ -194,7 +194,7 @@ public class ExpensesView extends Div implements BeforeEnterObserver { n.setPosition(Position.MIDDLE); n.addThemeVariants(NotificationVariant.LUMO_ERROR); } catch (ValidationException validationException) { - Notification.show("Failed to update the data. Check again that all values are valid"); + Notification.show("Failed to update the expense. Check again that all values are valid"); } }); diff --git a/src/main/java/com/application/munera/views/people/PeopleView.java b/src/main/java/com/application/munera/views/people/PeopleView.java index b264bbc..a02e513 100644 --- a/src/main/java/com/application/munera/views/people/PeopleView.java +++ b/src/main/java/com/application/munera/views/people/PeopleView.java @@ -153,7 +153,7 @@ public class PeopleView extends Div implements BeforeEnterObserver { n.setPosition(Position.MIDDLE); n.addThemeVariants(NotificationVariant.LUMO_ERROR); } catch (ValidationException validationException) { - Notification.show("Failed to update the data. Check again that all values are valid"); + Notification.show("Failed to update the person. Check again that all values are valid"); } });