rework buttons

This commit is contained in:
2023-09-16 12:21:32 +02:00
parent 4301c84b33
commit 3de8f53e0f
3 changed files with 13 additions and 7 deletions

View File

@@ -1,5 +1,4 @@
<script setup lang="ts">
import { ArrowPathIcon } from '@heroicons/vue/24/outline';
import { useStorage } from '@vueuse/core';
import { onMounted, ref, watch } from 'vue';
import { MarketOrderHistory, MarketResult, getHistory, jitaId } from ".";
@@ -44,16 +43,15 @@ onMounted(async () => {
</script>
<template>
<div class="grid grid-cols-2 mb-2 mt-4">
<div class="grid mb-2 mt-4">
<div class="w-auto">
<span>Item: </span>
<input type="text" class="w-96" v-model="item" @keyup.enter="addItem" />
<button class="justify-self-end ms-2" @click="addItem">Add</button>
</div>
<button class="justify-self-end flex" @click="reloadAll"><ArrowPathIcon class="h-6 w-6 me-2" />Reload all</button>
</div>
<template v-if="items.length > 0">
<hr />
<MarketReultTable :items="items" @relaod="type => addOrRelaod(type)" />
<MarketReultTable :items="items" @relaod="type => addOrRelaod(type)" @relaodAll="reloadAll" />
</template>
</template>