mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-27 16:10:32 +00:00
export interfaces as a .txt for ease of editing and avoiding issues with weird interface names
This commit is contained in:
parent
8a85a730ab
commit
1306593efc
1 changed files with 2 additions and 6 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue