Bandaid fix TFT items for now

This commit is contained in:
Blossomi Shymae
2024-10-12 19:18:52 -05:00
parent d377134e3b
commit 5324fd467b

View File

@@ -1,8 +1,17 @@
<script setup lang="ts">
const { client } = useClient();
const { currentLocale } = useLocale();
const getTftItems = async() => await client.tftItems.listAsync({ locale: currentLocale.value, version: "latest"});
const tftItems = ref(await getTftItems());
watch(currentLocale, async() => {
tftItems.value = await getTftItems();
});
</script>
<template> <template>
<div class="d-flex flex-column gap-2"> <div class="d-flex flex-column gap-2">
<h1>TFT Items</h1> <div class="overflow-hidden rounded border border-light border-opacity-25 p-4 app-background">
<div class="overflow-hidden rounded border border-light border-opacity-25 p-4">
<table class="sortable table table-borderless"> <table class="sortable table table-borderless">
<thead> <thead>
<tr> <tr>
@@ -31,18 +40,4 @@
</table> </table>
</div> </div>
</div> </div>
</template> </template>
<script setup lang="ts">
import useClient from '~/composables/useClient';
import useLocale from '~/composables/useLocale';
const { client } = useClient();
const { currentLocale } = useLocale();
const getTftItems = async() => await client.tftItems.listAsync({ locale: currentLocale.value, version: "latest"});
const tftItems = ref(await getTftItems());
watch(currentLocale, async() => {
tftItems.value = await getTftItems();
});
</script>