Skip to content

Commit

Permalink
improve(desktop): allow .json as extension of avro schema file
Browse files Browse the repository at this point in the history
  • Loading branch information
LAST7 committed Sep 20, 2024
1 parent 95da6d0 commit aef786e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/ImportScript.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,11 @@ export default class ImportScript extends Vue {
private getFileData() {
let loading: ElLoadingComponent | undefined = undefined
const extensions = this.extension === 'avsc' ? ['avsc', 'json'] : [`${this.extension}`]
remote.dialog
.showOpenDialog({
properties: ['openFile'],
filters: [{ name: '', extensions: [`${this.extension}`] }],
filters: [{ name: '', extensions }],
})
.then((res) => {
const { filePaths } = res
Expand Down

0 comments on commit aef786e

Please sign in to comment.