From e902d5d917aca7bc87b666c25ed71e5c97f0929f Mon Sep 17 00:00:00 2001 From: Nate Butler Date: Fri, 13 Oct 2023 11:47:05 -0400 Subject: [PATCH] Add example NotificationToast to workspace --- crates/ui2/src/components/workspace.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/ui2/src/components/workspace.rs b/crates/ui2/src/components/workspace.rs index bcd7d406732f6f914f12ae20728c145445c72f2b..6db5345aa81af485c12c15a8102e66c729b2ea29 100644 --- a/crates/ui2/src/components/workspace.rs +++ b/crates/ui2/src/components/workspace.rs @@ -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"))) } }