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>
<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">
<div class="overflow-hidden rounded border border-light border-opacity-25 p-4 app-background">
<table class="sortable table table-borderless">
<thead>
<tr>
@@ -31,18 +40,4 @@
</table>
</div>
</div>
</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>
</template>