@@ -440,7 +445,7 @@ export default function ParameterComponent({
disabled={disabled}
value={
!data.node.template[name].value ||
- data.node.template[name].value === ""
+ data.node.template[name].value === ""
? [""]
: data.node.template[name].value
}
@@ -523,6 +528,7 @@ export default function ParameterComponent({
{
setInternalValue(value);
onSelect(value);
diff --git a/src/frontend/src/components/ui/button.tsx b/src/frontend/src/components/ui/button.tsx
index a43ce3359..262de49cc 100644
--- a/src/frontend/src/components/ui/button.tsx
+++ b/src/frontend/src/components/ui/button.tsx
@@ -4,7 +4,7 @@ import * as React from "react";
import { cn } from "../../utils/utils";
const buttonVariants = cva(
- "inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none ring-offset-background",
+ "inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none ring-offset-background",
{
variants: {
variant: {
diff --git a/src/frontend/src/components/ui/refreshButton.tsx b/src/frontend/src/components/ui/refreshButton.tsx
index 3c446ff30..bf41ba114 100644
--- a/src/frontend/src/components/ui/refreshButton.tsx
+++ b/src/frontend/src/components/ui/refreshButton.tsx
@@ -1,6 +1,7 @@
import IconComponent from "../../components/genericIconComponent";
import { NodeDataType } from "../../types/flow";
import { cn } from "../../utils/utils";
+import { Button } from "./button";
function RefreshButton({
isLoading,
@@ -24,10 +25,7 @@ function RefreshButton({
handleUpdateValues(name, data);
};
- const classNames = cn(
- className,
- disabled ? "cursor-not-allowed" : "cursor-pointer"
- );
+ const classNames = cn(className, disabled ? "cursor-not-allowed" : "");
// icon class name should take into account the disabled state and the loading state
const disabledIconTextClass = disabled ? "text-muted-foreground" : "";
@@ -38,13 +36,19 @@ function RefreshButton({
);
return (
-
);
}
diff --git a/src/frontend/src/style/applies.css b/src/frontend/src/style/applies.css
index 77a760255..cca804fc7 100644
--- a/src/frontend/src/style/applies.css
+++ b/src/frontend/src/style/applies.css
@@ -316,7 +316,7 @@
@apply border-none ring ring-[#FF9090];
}
.built-invalid-status-dark {
- @apply border-none ring ring-[#751C1C]
+ @apply border-none ring ring-[#751C1C];
}
.building-status {
@apply border-none ring;
@@ -431,7 +431,9 @@
.code-area-external-link:hover {
@apply hover:text-accent-foreground;
}
-
+ .dropdown-component-disabled {
+ @apply pointer-events-none cursor-not-allowed;
+ }
.dropdown-component-outline {
@apply input-edit-node relative pr-8;
}
@@ -441,11 +443,17 @@
.dropdown-component-display {
@apply block w-full truncate bg-background;
}
+ .dropdown-component-display-disabled {
+ @apply text-muted-foreground;
+ }
.dropdown-component-arrow {
@apply pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2;
}
.dropdown-component-arrow-color {
- @apply extra-side-bar-save-disable h-5 w-5;
+ @apply h-5 w-5 text-accent-foreground;
+ }
+ .dropdown-component-arrow-color-disable {
+ @apply h-5 w-5 text-muted-foreground;
}
.dropdown-component-options {
@apply z-10 mt-1 max-h-60 overflow-auto rounded-md bg-background py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm;
@@ -902,7 +910,7 @@
@apply flex-max-width px-2 py-6 pl-4 pr-9;
}
.form-modal-chatbot-icon {
- @apply flex flex-col mb-3 ml-3 mr-6 mt-1;
+ @apply mb-3 ml-3 mr-6 mt-1 flex flex-col;
}
.form-modal-chat-image {
@apply flex flex-col items-center gap-1;
diff --git a/src/frontend/src/types/components/index.ts b/src/frontend/src/types/components/index.ts
index 67b3f7b9e..aef92b1a4 100644
--- a/src/frontend/src/types/components/index.ts
+++ b/src/frontend/src/types/components/index.ts
@@ -30,6 +30,7 @@ export type ToggleComponentType = {
editNode?: boolean;
};
export type DropDownComponentType = {
+ disabled?: boolean;
isLoading?: boolean;
value: string;
options: string[];
diff --git a/src/frontend/src/utils/styleUtils.ts b/src/frontend/src/utils/styleUtils.ts
index 969173513..9274c59d8 100644
--- a/src/frontend/src/utils/styleUtils.ts
+++ b/src/frontend/src/utils/styleUtils.ts
@@ -6,7 +6,6 @@ import {
BookMarked,
BookmarkPlus,
Bot,
- Snowflake,
Boxes,
Braces,
Cable,
@@ -100,6 +99,7 @@ import {
Share2,
Shield,
Sliders,
+ Snowflake,
Sparkles,
Square,
Store,
@@ -443,6 +443,7 @@ export const nodeIconsLucide: iconsType = {
Link,
ToyBrick,
RefreshCcw,
+ ListRestart,
Combine,
TerminalIcon,
TerminalSquare,