diff --git a/src/components/chat/ChatEditor.vue b/src/components/chat/ChatEditor.vue index 6899c38..20d439f 100644 --- a/src/components/chat/ChatEditor.vue +++ b/src/components/chat/ChatEditor.vue @@ -1,5 +1,33 @@ diff --git a/src/components/realms/RealmDeletion.vue b/src/components/realms/RealmDeletion.vue index 89a0c92..9a47732 100644 --- a/src/components/realms/RealmDeletion.vue +++ b/src/components/realms/RealmDeletion.vue @@ -8,7 +8,7 @@ @@ -36,7 +36,7 @@ const error = ref(null) const success = ref(false) const loading = ref(false) -async function deletePost() { +async function deleteRealm() { const target = realms.related.delete_to const url = `/api/realms/${target.id}` @@ -52,8 +52,8 @@ async function deletePost() { realms.show.delete = false realms.related.delete_to = null emits("relist") - if (route.name?.toString()?.startsWith("realm")) { - router.push({ name: "explore" }) + if (route.name?.toString()?.includes("realm")) { + await router.push({ name: "explore" }) } } loading.value = false diff --git a/src/layouts/chat.vue b/src/layouts/chat.vue index 143c6ae..8d3078b 100644 --- a/src/layouts/chat.vue +++ b/src/layouts/chat.vue @@ -1,10 +1,10 @@