|
|
|
@ -4,7 +4,6 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; |
|
|
|
|
import { faToggleOff, faToggleOn, faTrash } from "@fortawesome/free-solid-svg-icons"; |
|
|
|
|
import { CustomTooltip } from "@remix-ui/helper"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export interface ScriptRunnerUIProps { |
|
|
|
|
publishedConfigurations: ProjectConfiguration[]; |
|
|
|
|
openCustomConfig: () => any; |
|
|
|
@ -25,7 +24,7 @@ export const CustomScriptRunner = (props: ScriptRunnerUIProps) => { |
|
|
|
|
const { customConfig } = props; |
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
if(!customConfig) return; |
|
|
|
|
if (!customConfig) return; |
|
|
|
|
setDependencies(customConfig.dependencies); |
|
|
|
|
setBaseConfig(customConfig.baseConfiguration); |
|
|
|
|
},[customConfig]) |
|
|
|
@ -46,7 +45,6 @@ export const CustomScriptRunner = (props: ScriptRunnerUIProps) => { |
|
|
|
|
setDependencies(updatedDependencies); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const handleSaveToFile = () => { |
|
|
|
|
const fileData = JSON.stringify(dependencies, null, 2); |
|
|
|
|
console.log(fileData, baseConfig); |
|
|
|
|