diff --git a/src-electron/ui/ui-util.ts b/src-electron/ui/ui-util.ts index 037f8ff008..7978a004b5 100644 --- a/src-electron/ui/ui-util.ts +++ b/src-electron/ui/ui-util.ts @@ -108,6 +108,10 @@ function openFileDialogAndReportResult( ) { let p: Electron.OpenDialogOptions = { buttonLabel: 'Generate', + filters: [ + { name: 'ZCL File Type', extensions: ['json', 'xml'] }, + { name: 'All Files', extensions: ['*'] }, + ], } if (options.buttonLabel) { diff --git a/src-shared/types/ui-types.ts b/src-shared/types/ui-types.ts index f6639fa8b8..cce0d52a9c 100644 --- a/src-shared/types/ui-types.ts +++ b/src-shared/types/ui-types.ts @@ -22,5 +22,5 @@ export interface UiFileBrowseOptionsType { title: string defaultPath: string buttonLabel: string + filters: object } - diff --git a/src/components/ZclCustomZclView.vue b/src/components/ZclCustomZclView.vue index 7ca4c16fc1..4d1f09845b 100644 --- a/src/components/ZclCustomZclView.vue +++ b/src/components/ZclCustomZclView.vue @@ -15,75 +15,91 @@ limitations under the License. -->