easy adapter dialogs
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
import ShutdownDialog from "./ShutdownDialog.svelte";
|
import ShutdownDialog from "./ShutdownDialog.svelte";
|
||||||
import MessageDialog from "./MessageDialog.svelte";
|
import MessageDialog from "./MessageDialog.svelte";
|
||||||
import SwitchRotaryDialog from "./SwitchRotaryDialog.svelte";
|
import SwitchRotaryDialog from "./SwitchRotaryDialog.svelte";
|
||||||
|
import EasyAdapterDialog from "./EasyAdapterDialog.svelte";
|
||||||
|
|
||||||
const HomeMachineDialogProps = writable<HomeMachineDialogPropsType>();
|
const HomeMachineDialogProps = writable<HomeMachineDialogPropsType>();
|
||||||
type HomeMachineDialogPropsType = {
|
type HomeMachineDialogPropsType = {
|
||||||
@@ -18,6 +19,11 @@
|
|||||||
home: () => void;
|
home: () => void;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const EasyAdapterDialogProps = writable<EasyAdapterDialogPropsType>();
|
||||||
|
type EasyAdapterDialogPropsType = {
|
||||||
|
open: boolean;
|
||||||
|
};
|
||||||
|
|
||||||
const ProbeDialogProps = writable<ProbeDialogPropsType>();
|
const ProbeDialogProps = writable<ProbeDialogPropsType>();
|
||||||
type ProbeDialogPropsType = {
|
type ProbeDialogPropsType = {
|
||||||
open: boolean;
|
open: boolean;
|
||||||
@@ -86,6 +92,11 @@
|
|||||||
props: Omit<HomeMachineDialogPropsType, "open">
|
props: Omit<HomeMachineDialogPropsType, "open">
|
||||||
);
|
);
|
||||||
|
|
||||||
|
export function showDialog(
|
||||||
|
dialog: "EasyAdapter",
|
||||||
|
props: Omit<EasyAdapterDialogPropsType, "open">
|
||||||
|
);
|
||||||
|
|
||||||
export function showDialog(
|
export function showDialog(
|
||||||
dialog: "Probe",
|
dialog: "Probe",
|
||||||
props: Omit<ProbeDialogPropsType, "open">
|
props: Omit<ProbeDialogPropsType, "open">
|
||||||
@@ -142,6 +153,10 @@
|
|||||||
HomeMachineDialogProps.set({ ...props, open: true });
|
HomeMachineDialogProps.set({ ...props, open: true });
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "EasyAdapter":
|
||||||
|
EasyAdapterDialogProps.set({ ...props, open: true });
|
||||||
|
break;
|
||||||
|
|
||||||
case "Probe":
|
case "Probe":
|
||||||
ProbeDialogProps.set({ ...props, open: true });
|
ProbeDialogProps.set({ ...props, open: true });
|
||||||
break;
|
break;
|
||||||
@@ -251,6 +266,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<HomeMachineDialog {...$HomeMachineDialogProps} />
|
<HomeMachineDialog {...$HomeMachineDialogProps} />
|
||||||
|
<EasyAdapterDialog {...$EasyAdapterDialogProps} />
|
||||||
<ProbeDialog {...$ProbeDialogProps} />
|
<ProbeDialog {...$ProbeDialogProps} />
|
||||||
<ScreenRotationDialog {...$ScreenRotationDialogProps} />
|
<ScreenRotationDialog {...$ScreenRotationDialogProps} />
|
||||||
<UploadDialog {...$UploadDialogProps} />
|
<UploadDialog {...$UploadDialogProps} />
|
||||||
|
|||||||
19
src/svelte-components/src/dialogs/EasyAdapterDialog.svelte
Normal file
19
src/svelte-components/src/dialogs/EasyAdapterDialog.svelte
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<script lang="ts">
|
||||||
|
import Dialog, {
|
||||||
|
Title,
|
||||||
|
Content
|
||||||
|
} from "@smui/dialog";
|
||||||
|
|
||||||
|
export let open;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<Dialog
|
||||||
|
bind:open
|
||||||
|
scrimClickAction=""
|
||||||
|
aria-labelledby="easy-adapter-dialog-title"
|
||||||
|
aria-describedby="easy-adapter-dialog-content"
|
||||||
|
>
|
||||||
|
<Title id="easy-adapter-dialog-title">Configuring Easy Adapter</Title>
|
||||||
|
|
||||||
|
<Content id="easy-adapter-dialog-content">This will take ~90 seconds to complete. Please wait until the process is complete.</Content>
|
||||||
|
</Dialog>
|
||||||
Reference in New Issue
Block a user