refactor: notifications
This commit is contained in:
parent
8fe920138e
commit
b72103653b
4 changed files with 4 additions and 4 deletions
|
@ -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");
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue