Added name changing
This commit is contained in:
parent
9c778cb948
commit
9d5faaf3c2
4 changed files with 6 additions and 4 deletions
|
|
@ -128,7 +128,7 @@ export default function GenericNode({
|
||||||
|
|
||||||
const showNode = data.showNode ?? true;
|
const showNode = data.showNode ?? true;
|
||||||
|
|
||||||
const nameEditable = data.node?.flow || data.type === "CustomComponent";
|
const nameEditable = true;
|
||||||
|
|
||||||
const emojiRegex = /\p{Emoji}/u;
|
const emojiRegex = /\p{Emoji}/u;
|
||||||
const isEmoji = emojiRegex.test(data?.node?.icon!);
|
const isEmoji = emojiRegex.test(data?.node?.icon!);
|
||||||
|
|
|
||||||
|
|
@ -153,7 +153,7 @@ export default function IOView({ children, open, setOpen }): JSX.Element {
|
||||||
trigger={
|
trigger={
|
||||||
<div className="file-component-badge-div">
|
<div className="file-component-badge-div">
|
||||||
<Badge variant="gray" size="md">
|
<Badge variant="gray" size="md">
|
||||||
{input.id}
|
{node.data.node.display_name}
|
||||||
</Badge>
|
</Badge>
|
||||||
{haveChat && (
|
{haveChat && (
|
||||||
<div
|
<div
|
||||||
|
|
@ -194,7 +194,7 @@ export default function IOView({ children, open, setOpen }): JSX.Element {
|
||||||
className="api-modal-tabs-content mt-4"
|
className="api-modal-tabs-content mt-4"
|
||||||
>
|
>
|
||||||
<div className="mx-2 mb-2 flex items-center gap-2 text-sm font-bold">
|
<div className="mx-2 mb-2 flex items-center gap-2 text-sm font-bold">
|
||||||
<IconComponent className="h-4 w-4" name={"Braces"} />
|
<IconComponent className="h-4 w-4" name={"FileType2"} />
|
||||||
{outputsModalTitle}
|
{outputsModalTitle}
|
||||||
</div>
|
</div>
|
||||||
{nodes
|
{nodes
|
||||||
|
|
|
||||||
|
|
@ -701,7 +701,7 @@ export const editTextPlaceholder = "Type message here.";
|
||||||
export const inputHandleHover = "Avaliable input components:";
|
export const inputHandleHover = "Avaliable input components:";
|
||||||
export const outputHandleHover = "Avaliable output components:";
|
export const outputHandleHover = "Avaliable output components:";
|
||||||
export const textInputModalTitle = "Text Inputs";
|
export const textInputModalTitle = "Text Inputs";
|
||||||
export const outputsModalTitle = "Prompt Outputs";
|
export const outputsModalTitle = "Text Outputs";
|
||||||
export const langflowChatTitle = "Langflow Chat";
|
export const langflowChatTitle = "Langflow Chat";
|
||||||
export const chatInputPlaceholder =
|
export const chatInputPlaceholder =
|
||||||
"No chat input variables found. Click to run your flow.";
|
"No chat input variables found. Click to run your flow.";
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,7 @@ import {
|
||||||
FileSearch,
|
FileSearch,
|
||||||
FileSearch2,
|
FileSearch2,
|
||||||
FileText,
|
FileText,
|
||||||
|
FileType2,
|
||||||
FileUp,
|
FileUp,
|
||||||
Fingerprint,
|
Fingerprint,
|
||||||
FlaskConical,
|
FlaskConical,
|
||||||
|
|
@ -354,6 +355,7 @@ export const nodeIconsLucide: iconsType = {
|
||||||
Plus,
|
Plus,
|
||||||
Redo,
|
Redo,
|
||||||
Settings2,
|
Settings2,
|
||||||
|
FileType2,
|
||||||
Undo,
|
Undo,
|
||||||
FileSearch2,
|
FileSearch2,
|
||||||
ChevronRight,
|
ChevronRight,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue