refactor: notifications

This commit is contained in:
filippo-ferrari 2024-09-10 19:33:39 +02:00
parent 8fe920138e
commit b72103653b
4 changed files with 4 additions and 4 deletions

View file

@ -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");
}
});

View file

@ -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");
}
});

View file

@ -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");
}
});

View file

@ -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");
}
});