assistant2: Fix "Open Prompt Library" button (#25612)
This PR fixes the "Open Prompt Library" button after the GPUI 3 changes. Release Notes: - N/A
This commit is contained in:
parent
3db18ff053
commit
57659b5552
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
use collections::HashMap;
|
use collections::HashMap;
|
||||||
use gpui::{AnyView, App, EventEmitter, FocusHandle, Focusable, Subscription};
|
use gpui::{Action, AnyView, App, EventEmitter, FocusHandle, Focusable, Subscription};
|
||||||
use language_model::{LanguageModelProvider, LanguageModelProviderId, LanguageModelRegistry};
|
use language_model::{LanguageModelProvider, LanguageModelProviderId, LanguageModelRegistry};
|
||||||
use ui::{prelude::*, Divider, DividerColor, ElevationIndex};
|
use ui::{prelude::*, Divider, DividerColor, ElevationIndex};
|
||||||
use zed_actions::assistant::DeployPromptLibrary;
|
use zed_actions::assistant::DeployPromptLibrary;
|
||||||
|
@ -168,8 +168,8 @@ impl Render for AssistantConfiguration {
|
||||||
.icon(IconName::Book)
|
.icon(IconName::Book)
|
||||||
.icon_size(IconSize::Small)
|
.icon_size(IconSize::Small)
|
||||||
.icon_position(IconPosition::Start)
|
.icon_position(IconPosition::Start)
|
||||||
.on_click(|_event, _window, cx| {
|
.on_click(|_event, window, cx| {
|
||||||
cx.dispatch_action(&DeployPromptLibrary)
|
window.dispatch_action(DeployPromptLibrary.boxed_clone(), cx)
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue