Use workflow name as title of file if handle isn't provided
This commit is contained in:
@@ -68,7 +68,8 @@ export default {
|
||||
|
||||
// Save file
|
||||
const blob = new Blob([JSON.stringify({ workflows }, null, 2)], { type: 'application/json' })
|
||||
saveAs(blob, `${this.fileName}.json`)
|
||||
const filename = this.fileName.replace(/[/\\?%*:|"<>]/g, '')
|
||||
saveAs(blob, `${filename}.json`)
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -329,7 +329,7 @@
|
||||
<export
|
||||
data-test-id="button-export-workflow"
|
||||
:workflows="[workflow.workflowID]"
|
||||
:file-name="workflow.handle"
|
||||
:file-name="workflow.meta.name || workflow.handle"
|
||||
class="ml-1"
|
||||
/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user