ADD: Basic save

This commit is contained in:
Robert Kossessa
2024-03-09 23:23:47 +01:00
parent 1ed8284996
commit 95e6aad1f5
4 changed files with 14 additions and 1 deletions

View File

@@ -145,6 +145,7 @@
: 'border-2'
"
class="app-titlebar-button"
@click="nanoDevicesAPI.save(store.connectedId)"
>
Save
</MenubarButton>
@@ -208,7 +209,7 @@ const showDisconnectButton = ref(false)
const isMaximized = ref(false)
const { electronAPI } = window
const { electronAPI, nanoDevicesAPI } = window
const isMacOS = electronAPI.platform === 'darwin'
const zoomFactor = ref(1)

View File

@@ -14,6 +14,14 @@ import mockData from '@renderer/data/nanoConfig.json'
const { nanoDevicesAPI } = window
// TODO: Define Profile type
// TODO: Define Device type
// TODO: Define Key type
// TODO: Define ProfileCategory type
export const useStore = defineStore('main', {
state: () => {
return {