mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-10-15 01:40:46 +02:00
order of items
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user