diff --git a/packages/pockethost.io/src/routes/app/instances/[instanceId]/+layout.svelte b/packages/pockethost.io/src/routes/app/instances/[instanceId]/+layout.svelte
index bcf15f35..6953950d 100644
--- a/packages/pockethost.io/src/routes/app/instances/[instanceId]/+layout.svelte
+++ b/packages/pockethost.io/src/routes/app/instances/[instanceId]/+layout.svelte
@@ -10,19 +10,17 @@
const { instanceId } = $page.params
const cm = createCleanupManager()
- instance.set(undefined)
onMount(async () => {
- const { dbg } = logger()
+ const { dbg, error } = logger().create(`layout.svelte`)
const { watchInstanceById } = client()
watchInstanceById(instanceId, (r) => {
dbg(`Handling instance update`, r)
const { action, record } = r
assertExists(record, `Expected instance here`)
instance.set(record)
- }).then(cm.add)
- })
- cm.add(() => {
- instance.set(undefined)
+ })
+ .then(cm.add)
+ .catch(error)
})
onDestroy(() => cm.shutdown())
diff --git a/packages/pockethost.io/src/routes/app/instances/[instanceId]/+page.svelte b/packages/pockethost.io/src/routes/app/instances/[instanceId]/+page.svelte
index 4b612f70..f53f6c32 100644
--- a/packages/pockethost.io/src/routes/app/instances/[instanceId]/+page.svelte
+++ b/packages/pockethost.io/src/routes/app/instances/[instanceId]/+page.svelte
@@ -3,7 +3,7 @@
import { PUBLIC_APP_PROTOCOL } from '$src/env'
import { assertExists } from '@pockethost/common'
import Code from './Code.svelte'
- import Danger from './Danger.svelte'
+ import Danger from './Danger/Danger.svelte'
import Ftp from './Ftpx.svelte'
import Logging from './Logging.svelte'
import Overview from './Overview.svelte'
diff --git a/packages/pockethost.io/src/routes/app/instances/[instanceId]/Danger.svelte b/packages/pockethost.io/src/routes/app/instances/[instanceId]/Danger.svelte
deleted file mode 100644
index db414410..00000000
--- a/packages/pockethost.io/src/routes/app/instances/[instanceId]/Danger.svelte
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-
- Warning - renaming your instance will cause it to become inaccessible by the old instance
- name. You also may not be able to change it back if someone else choose it. See renaming for more information.
-
- Your PocketHost instance will not be accessible while in maintenance mode. Use this when you
- are upgrading, downgrading, or backing up your data. See Maintenance Mode for more information.
- Rename Instance
- Maintenance Mode
-
+ Your PocketHost instance will not be accessible while in maintenance mode. Use this when you are + upgrading, downgrading, or backing up your data. See Maintenance Mode for more information. +
++ Warning - renaming your instance will cause it to become inaccessible by the old instance name. + You also may not be able to change it back if someone else choose it. See renaming for more information. +
+