Fix: DSL backup (#6616)
This commit is contained in:
parent
3c78fdec1c
commit
2aad128883
2 changed files with 3 additions and 2 deletions
|
|
@ -434,7 +434,7 @@ const AppInfo = ({ expand }: IAppInfoProps) => {
|
||||||
{showImportDSLModal && (
|
{showImportDSLModal && (
|
||||||
<UpdateDSLModal
|
<UpdateDSLModal
|
||||||
onCancel={() => setShowImportDSLModal(false)}
|
onCancel={() => setShowImportDSLModal(false)}
|
||||||
onBackup={onExport}
|
onBackup={exportCheck}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{secretEnvList.length > 0 && (
|
{secretEnvList.length > 0 && (
|
||||||
|
|
|
||||||
|
|
@ -248,6 +248,7 @@ const Workflow: FC<WorkflowProps> = memo(({
|
||||||
} = useWorkflow()
|
} = useWorkflow()
|
||||||
const { handleStartWorkflowRun } = useWorkflowStartRun()
|
const { handleStartWorkflowRun } = useWorkflowStartRun()
|
||||||
const {
|
const {
|
||||||
|
exportCheck,
|
||||||
handleExportDSL,
|
handleExportDSL,
|
||||||
} = useDSL()
|
} = useDSL()
|
||||||
|
|
||||||
|
|
@ -334,7 +335,7 @@ const Workflow: FC<WorkflowProps> = memo(({
|
||||||
showImportDSLModal && (
|
showImportDSLModal && (
|
||||||
<UpdateDSLModal
|
<UpdateDSLModal
|
||||||
onCancel={() => setShowImportDSLModal(false)}
|
onCancel={() => setShowImportDSLModal(false)}
|
||||||
onBackup={handleExportDSL}
|
onBackup={exportCheck}
|
||||||
onImport={handlePaneContextmenuCancel}
|
onImport={handlePaneContextmenuCancel}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue