feat: Add pki backup dialog, refactor Channels pre-shared key to support regenerate dialog

This commit is contained in:
Dan Ditomaso
2025-01-07 15:08:01 -05:00
parent ecd50148de
commit 74e33d09b1
8 changed files with 312 additions and 153 deletions
+4 -1
View File
@@ -25,7 +25,8 @@ export type DialogVariant =
| "shutdown"
| "reboot"
| "deviceName"
| "nodeRemoval";
| "nodeRemoval"
| "pkiBackup";
export interface Device {
id: number;
@@ -60,6 +61,7 @@ export interface Device {
reboot: boolean;
deviceName: boolean;
nodeRemoval: boolean;
pkiBackup: boolean;
};
setStatus: (status: Types.DeviceStatusEnum) => void;
@@ -142,6 +144,7 @@ export const useDeviceStore = create<DeviceState>((set, get) => ({
reboot: false,
deviceName: false,
nodeRemoval: false,
pkiBackup: false,
},
pendingSettingsChanges: false,
messageDraft: "",