diff --git a/components/global/sidebar/Sidebar.vue b/components/global/sidebar/Sidebar.vue index ad29aa5..e0c8ec9 100644 --- a/components/global/sidebar/Sidebar.vue +++ b/components/global/sidebar/Sidebar.vue @@ -15,7 +15,7 @@ function handleMenuItemAction(actionType: SidebarMenuActionType) { + + diff --git a/components/global/user/CTA.vue b/components/global/user/CTA.vue index c4756a7..f57b281 100644 --- a/components/global/user/CTA.vue +++ b/components/global/user/CTA.vue @@ -60,7 +60,7 @@ function pushRoute(to: AvailableRoutes) { - + +import { PhX } from "@phosphor-icons/vue"; +import type { World } from "~/models/World"; + +const props = defineProps<{ + modalState?: boolean + world: World | null +}>() + +const worldSkeletonName = ref(props.world?.name ?? "") +watch(() => props.world, (newWorld) => { + worldSkeletonName.value = newWorld?.name ?? "" +}) + +function onChangedName(newName: string) { + worldSkeletonName.value = newName +} + +const emit = defineEmits(["on-close"]) + +function handleClose() { + emit("on-close") +} + + + diff --git a/components/world/form/Edit.vue b/components/world/form/Edit.vue new file mode 100644 index 0000000..fe8d1ba --- /dev/null +++ b/components/world/form/Edit.vue @@ -0,0 +1,113 @@ + + +