agent: Change "prompt editor" to "text thread" (#28370)
Release Notes: - N/A
This commit is contained in:
parent
e2d6505d12
commit
0d4ca71e68
2 changed files with 3 additions and 13 deletions
|
@ -1080,7 +1080,7 @@ impl AssistantPanel {
|
||||||
cx,
|
cx,
|
||||||
|menu, _window, _cx| {
|
|menu, _window, _cx| {
|
||||||
menu.action(
|
menu.action(
|
||||||
"New Prompt Editor",
|
"New Text Thread",
|
||||||
NewPromptEditor.boxed_clone(),
|
NewPromptEditor.boxed_clone(),
|
||||||
)
|
)
|
||||||
.when(!is_empty, |menu| {
|
.when(!is_empty, |menu| {
|
||||||
|
|
|
@ -452,12 +452,7 @@ impl RenderOnce for PastThread {
|
||||||
.shape(IconButtonShape::Square)
|
.shape(IconButtonShape::Square)
|
||||||
.icon_size(IconSize::XSmall)
|
.icon_size(IconSize::XSmall)
|
||||||
.tooltip(move |window, cx| {
|
.tooltip(move |window, cx| {
|
||||||
Tooltip::for_action(
|
Tooltip::for_action("Delete", &RemoveSelectedThread, window, cx)
|
||||||
"Delete Thread",
|
|
||||||
&RemoveSelectedThread,
|
|
||||||
window,
|
|
||||||
cx,
|
|
||||||
)
|
|
||||||
})
|
})
|
||||||
.on_click({
|
.on_click({
|
||||||
let assistant_panel = self.assistant_panel.clone();
|
let assistant_panel = self.assistant_panel.clone();
|
||||||
|
@ -559,12 +554,7 @@ impl RenderOnce for PastContext {
|
||||||
.shape(IconButtonShape::Square)
|
.shape(IconButtonShape::Square)
|
||||||
.icon_size(IconSize::XSmall)
|
.icon_size(IconSize::XSmall)
|
||||||
.tooltip(move |window, cx| {
|
.tooltip(move |window, cx| {
|
||||||
Tooltip::for_action(
|
Tooltip::for_action("Delete", &RemoveSelectedThread, window, cx)
|
||||||
"Delete Prompt Editor",
|
|
||||||
&RemoveSelectedThread,
|
|
||||||
window,
|
|
||||||
cx,
|
|
||||||
)
|
|
||||||
})
|
})
|
||||||
.on_click({
|
.on_click({
|
||||||
let assistant_panel = self.assistant_panel.clone();
|
let assistant_panel = self.assistant_panel.clone();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue