mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-20 17:03:42 +00:00
17
src/routes/config/+layout.svelte
Normal file
17
src/routes/config/+layout.svelte
Normal file
@@ -0,0 +1,17 @@
|
||||
<script>
|
||||
import {serialPort} from "$lib/serial/connection"
|
||||
import {LL} from "../../i18n/i18n-svelte"
|
||||
</script>
|
||||
|
||||
{#if $serialPort}
|
||||
<slot />
|
||||
{:else}
|
||||
<p>{$LL.deviceManager.NO_DEVICE()}</p>
|
||||
{/if}
|
||||
|
||||
<style lang="scss">
|
||||
p {
|
||||
margin: auto;
|
||||
opacity: 0.4;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user