diff --git a/web/src/pages/ConfigEditor.tsx b/web/src/pages/ConfigEditor.tsx index d09c5ad68..ea89d32fb 100644 --- a/web/src/pages/ConfigEditor.tsx +++ b/web/src/pages/ConfigEditor.tsx @@ -11,6 +11,8 @@ import copy from "copy-to-clipboard"; import { useTheme } from "@/context/theme-provider"; import { Toaster } from "@/components/ui/sonner"; import { toast } from "sonner"; +import { LuCopy, LuSave } from "react-icons/lu"; +import { MdOutlineRestartAlt } from "react-icons/md"; type SaveOptions = "saveonly" | "restart"; @@ -69,6 +71,7 @@ function ConfigEditor() { } copy(editorRef.current.getValue()); + toast.success("Config copied to clipboard.", { position: "top-center" }); }, [editorRef]); useEffect(() => { @@ -117,7 +120,6 @@ function ConfigEditor() { return () => { configRef.current = null; - editorRef.current = null; modelRef.current = null; }; }); @@ -127,37 +129,51 @@ function ConfigEditor() { } return ( -