Change summary
crates/ui2/src/components/workspace.rs | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
Detailed changes
@@ -268,10 +268,10 @@ impl Workspace {
.child(Toast::new(ToastOrigin::Bottom).child(Label::new("A toast")))
// .child(Toast::new(ToastOrigin::BottomRight).child(Label::new("Another toast")))
.child(NotificationToast::new(
- "A notification",
- "This is a notification",
- Button::new("Primary"),
- ))
+ "Can't pull changes from origin",
+ "Your local branch is behind the remote branch. Please pull the latest changes before pushing.",
+ Button::new("Stash & Switch").variant(ButtonVariant::Filled),
+ ).secondary_action(Button::new("Cancel")))
}
}