Skip to content

Commit a430bf8

Browse files
Samiya CaurDevtools-frontend LUCI CQ
authored andcommitted
Update placeholder text for AI Assistant for CSS when no context is selected
Change-Id: Id876f5f2fec40cfb7ac392b30ade681a0b24d1ef Bug: 380394111 Change-Id: Id876f5f2fec40cfb7ac392b30ade681a0b24d1ef Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6110029 Commit-Queue: Benedikt Meurer <[email protected]> Auto-Submit: Samiya Caur <[email protected]> Reviewed-by: Benedikt Meurer <[email protected]>
1 parent ad8d2d1 commit a430bf8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

front_end/panels/ai_assistance/components/ChatView.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,8 +1070,9 @@ export class ChatView extends HTMLElement {
10701070
case AgentType.PATCH:
10711071
return lockedString(UIStringsNotTranslate.inputPlaceholderForFreestylerAgent);
10721072
case AgentType.STYLING:
1073-
return this.#props.selectedContext ? lockedString(UIStringsNotTranslate.inputPlaceholderForFreestylerAgent) :
1074-
lockedString(UIStringsNotTranslate.inputPlaceholderForFileAgentNoContext);
1073+
return this.#props.selectedContext ?
1074+
lockedString(UIStringsNotTranslate.inputPlaceholderForFreestylerAgent) :
1075+
lockedString(UIStringsNotTranslate.inputPlaceholderForFreestylerAgentNoContext);
10751076
case AgentType.FILE:
10761077
return this.#props.selectedContext ? lockedString(UIStringsNotTranslate.inputPlaceholderForFileAgent) :
10771078
lockedString(UIStringsNotTranslate.inputPlaceholderForFileAgentNoContext);

0 commit comments

Comments
 (0)