bug fixes (#116)

* bug fixes

* fix ws url
This commit is contained in:
UUBulb authored and GitHub committed 2025-02-05 18:46:42 +08:00
1 parent a52bf64779
commit d96a2e4c3c
8 files changed
+30 -29

No files matched your search

+13 -3
View File
@@ -54,7 +54,17 @@ export const ServerConfigCardBatch: React.FC<ServerConfigCardBatchProps> = ({ si
setOpen(false)
}
return (
return sid.length < 1 ? (
<IconButton
{...props}
icon="cog"
onClick={() => {
toast(t("Error"), {
description: t("Results.NoRowsAreSelected"),
})
}}
/>
) : (
<Dialog open={open} onOpenChange={setOpen}>
<DialogTrigger asChild>
<IconButton {...props} icon="cog" />
@@ -67,7 +77,7 @@ export const ServerConfigCardBatch: React.FC<ServerConfigCardBatchProps> = ({ si
<DialogDescription />
</DialogHeader>
<div className="flex flex-col gap-3 mt-4">
<Label>Option</Label>
<Label>{t("Option")}</Label>
<Input
type="text"
placeholder="option"
@@ -76,7 +86,7 @@ export const ServerConfigCardBatch: React.FC<ServerConfigCardBatchProps> = ({ si
setCurrentKey(e.target.value)
}}
/>
<Label>Value</Label>
<Label>{t("Value")}</Label>
<Textarea
className="resize-y"
value={currentVal}