NetworkZone

This commit is contained in:
2025-05-22 14:51:54 +01:00
parent 7d03b81723
commit bfe0f8eabf
8 changed files with 48 additions and 13 deletions

View File

@@ -15,23 +15,26 @@ const props = defineProps({
const form = useForm({
provider: null,
location: null,
network_zone: null,
server_type: null,
image: null,
});
watch(
() => form.provider,
(provider) => {
() => {
loadLocations();
},
);
watch (
watch(
() => form.location,
(location) => {
const selectedLoc = props.locations.find((loc) => loc.id === location)?.networkZone;
form.network_zone = selectedLoc;
loadServerTypes();
}
)
},
);
loadLocations();
loadServerTypes();
@@ -75,7 +78,7 @@ function loadServerTypes() {
},
{
title: 'Create',
}
},
]"
>
<div class="flex h-full flex-1 flex-col gap-4 rounded-xl p-4">