order of items

This commit is contained in:
2025-10-12 02:30:22 +02:00
parent b2948b54da
commit ed1a05bb2f

View File

@@ -6,9 +6,8 @@
color="secondary"
:items="libraries?.map((l) => l.key)"
class="w-xs"
@change="onLibrarySelectChange"
:loading="loading"
>
@change="onLibrarySelectChange">
<template #default="{ modelValue }">
<p v-if="modelValue">
<span class="mr-2">{{ libraries?.find((l) => l.key == modelValue)?.libraryName }}</span>
@@ -39,7 +38,10 @@ const loading = ref(false);
const onLibrarySelectChange = async () => {
if (!library.value) return;
loading.value = true;
await useApi('/v2/Manga/{MangaId}/ChangeLibrary/{LibraryId}', { method: 'POST', path: { MangaId: props.mangaId, LibraryId: library.value } });
await useApi('/v2/Manga/{MangaId}/ChangeLibrary/{LibraryId}', {
method: 'POST',
path: { MangaId: props.mangaId, LibraryId: library.value },
});
loading.value = false;
}
};
</script>