Moved the button to adjust time to the settings page.
This commit is contained in:
@@ -532,10 +532,6 @@ module.exports = {
|
|||||||
|
|
||||||
showProbeDialog: function (probeType) {
|
showProbeDialog: function (probeType) {
|
||||||
SvelteComponents.showDialog("Probe", { probeType });
|
SvelteComponents.showDialog("Probe", { probeType });
|
||||||
},
|
|
||||||
|
|
||||||
showSetTimeDialog: function () {
|
|
||||||
SvelteComponents.showDialog("SetTime");
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -269,8 +269,6 @@ script#control-view-template(type="text/x-template")
|
|||||||
th Current Time
|
th Current Time
|
||||||
td
|
td
|
||||||
span {{current_time}}
|
span {{current_time}}
|
||||||
button.pure-button(@click="showSetTimeDialog", style="height: 28px; padding: 0px 10px")
|
|
||||||
.fa.fa-cog
|
|
||||||
|
|
||||||
tr
|
tr
|
||||||
th Remaining
|
th Remaining
|
||||||
|
|||||||
@@ -2,13 +2,17 @@
|
|||||||
import configTemplate from "../../../resources/config-template.json";
|
import configTemplate from "../../../resources/config-template.json";
|
||||||
import ScreenRotationDialog from "$dialogs/ScreenRotationDialog.svelte";
|
import ScreenRotationDialog from "$dialogs/ScreenRotationDialog.svelte";
|
||||||
import ConfigTemplatedInput from "./ConfigTemplatedInput.svelte";
|
import ConfigTemplatedInput from "./ConfigTemplatedInput.svelte";
|
||||||
|
import SetTimeDialog from "$dialogs/SetTimeDialog.svelte";
|
||||||
|
import Button, { Label } from "@smui/button";
|
||||||
|
|
||||||
const gcodeURL = "https://linuxcnc.org/docs/html/gcode/g-code.html";
|
const gcodeURL = "https://linuxcnc.org/docs/html/gcode/g-code.html";
|
||||||
|
|
||||||
let showScreenRotationDialog = false;
|
let showScreenRotationDialog = false;
|
||||||
|
let showSetTimeDialog = false;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<ScreenRotationDialog bind:open={showScreenRotationDialog} />
|
<ScreenRotationDialog bind:open={showScreenRotationDialog} />
|
||||||
|
<SetTimeDialog bind:open={showSetTimeDialog} />
|
||||||
|
|
||||||
<h1>Settings</h1>
|
<h1>Settings</h1>
|
||||||
|
|
||||||
@@ -17,13 +21,26 @@
|
|||||||
<fieldset>
|
<fieldset>
|
||||||
<div class="pure-control-group">
|
<div class="pure-control-group">
|
||||||
<label for="screen-rotation" />
|
<label for="screen-rotation" />
|
||||||
<button
|
<Button
|
||||||
class="pure-button"
|
|
||||||
name="screen-rotation"
|
name="screen-rotation"
|
||||||
|
touch
|
||||||
|
variant="raised"
|
||||||
on:click={() => (showScreenRotationDialog = true)}
|
on:click={() => (showScreenRotationDialog = true)}
|
||||||
>
|
>
|
||||||
Change Screen Rotation
|
<Label>Change Screen Rotation</Label>
|
||||||
</button>
|
</Button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pure-control-group">
|
||||||
|
<label for="set-time" />
|
||||||
|
<Button
|
||||||
|
name="set-time"
|
||||||
|
touch
|
||||||
|
variant="raised"
|
||||||
|
on:click={() => (showSetTimeDialog = true)}
|
||||||
|
>
|
||||||
|
<Label>Change Time & Timezone</Label>
|
||||||
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user