From 1306593efc19ba8b3fa456317cd97c0726fe4589 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Thu, 2 Jan 2025 01:08:28 +1300 Subject: [PATCH] export interfaces as a .txt for ease of editing and avoiding issues with weird interface names --- src/frontend/components/interfaces/InterfacesPage.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/frontend/components/interfaces/InterfacesPage.vue b/src/frontend/components/interfaces/InterfacesPage.vue index 547859a..c25c890 100644 --- a/src/frontend/components/interfaces/InterfacesPage.vue +++ b/src/frontend/components/interfaces/InterfacesPage.vue @@ -260,9 +260,7 @@ export default { const response = await window.axios.post('/api/v1/reticulum/interfaces/export'); // download file to browser - DownloadUtils.downloadFile("meshchat_interfaces", new Blob([response.data], { - type: "application/octet-stream", - })); + DownloadUtils.downloadFile("meshchat_interfaces.txt", new Blob([response.data])); } catch(e) { DialogUtils.alert("Failed to export interfaces"); @@ -280,9 +278,7 @@ export default { }); // download file to browser - DownloadUtils.downloadFile(interfaceName, new Blob([response.data], { - type: "application/octet-stream", - })); + DownloadUtils.downloadFile(`${interfaceName}.txt`, new Blob([response.data])); } catch(e) { DialogUtils.alert("Failed to export interface");