Move workspace::toast_layer::RunAction to zed_actions::toast::RunAction (#32222)
Cleaner to have references to this be `toast::RunAction` matching how it appears in the keymap, instead of `workspace::RunAction`. Release Notes: - N/A
This commit is contained in:
parent
96609151c6
commit
5c9b8e8321
6 changed files with 14 additions and 6 deletions
|
@ -35,6 +35,7 @@ ui.workspace = true
|
|||
util.workspace = true
|
||||
workspace.workspace = true
|
||||
workspace-hack.workspace = true
|
||||
zed_actions.workspace = true
|
||||
|
||||
[dev-dependencies]
|
||||
client = { workspace = true, features = ["test-support"] }
|
||||
|
|
|
@ -3,6 +3,7 @@ use std::rc::Rc;
|
|||
use gpui::{DismissEvent, Entity, EventEmitter, FocusHandle, Focusable, IntoElement};
|
||||
use ui::{Tooltip, prelude::*};
|
||||
use workspace::{ToastAction, ToastView};
|
||||
use zed_actions::toast;
|
||||
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct ToastIcon {
|
||||
|
@ -109,7 +110,7 @@ impl Render for StatusToast {
|
|||
Button::new(action.id.clone(), action.label.clone())
|
||||
.tooltip(Tooltip::for_action_title(
|
||||
action.label.clone(),
|
||||
&workspace::RunAction,
|
||||
&toast::RunAction,
|
||||
))
|
||||
.color(Color::Muted)
|
||||
.when_some(action.on_click.clone(), |el, handler| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue