cleanup
This commit is contained in:
@@ -18,6 +18,6 @@ const doCopy = () => {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<button class="btn-icon" title="Copy to clipboard" @click="doCopy">
|
<button class="btn-icon" title="Copy to clipboard" @click="doCopy">
|
||||||
<ClipboardIcon />
|
<ClipboardIcon />
|
||||||
</button>
|
</button>
|
||||||
</template>
|
</template>
|
||||||
@@ -141,7 +141,7 @@ const getLineColor = (result: Result) => {
|
|||||||
<td v-if="showColumn('profit')" class="text-right">{{ percentFormater.format(r.profit) }}</td>
|
<td v-if="showColumn('profit')" class="text-right">{{ percentFormater.format(r.profit) }}</td>
|
||||||
<td v-if="showColumn('score')" class="text-right">{{ scoreFormater.format(r.score) }}</td>
|
<td v-if="showColumn('score')" class="text-right">{{ scoreFormater.format(r.score) }}</td>
|
||||||
<td v-if="showColumn('buttons')" class="text-right">
|
<td v-if="showColumn('buttons')" class="text-right">
|
||||||
<button class="btn-icon me-1" title="Add to acquisitions" @click="$emit('buy', r.type, r.buy, r.sell)"><ShoppingCartIcon /></button>
|
<button class="btn-icon me-1" title="Add acquisitions" @click="$emit('buy', r.type, r.buy, r.sell)"><ShoppingCartIcon /></button>
|
||||||
<button class="btn-icon me-1" title="Untrack" @click="$emit('remove', r.type)"><BookmarkSlashIcon /></button>
|
<button class="btn-icon me-1" title="Untrack" @click="$emit('remove', r.type)"><BookmarkSlashIcon /></button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ withDefaults(defineProps<Props>(), {
|
|||||||
<img v-if="id" :src="`https://images.evetech.net/types/${id}/icon`" class="inline-block w-5 h-5 me-1" alt="" />
|
<img v-if="id" :src="`https://images.evetech.net/types/${id}/icon`" class="inline-block w-5 h-5 me-1" alt="" />
|
||||||
<template v-if="name">
|
<template v-if="name">
|
||||||
{{ name }}
|
{{ name }}
|
||||||
<RouterLink :to="{ name: 'market-types', params: { type: id } }" custom #default="{ navigate }">
|
<RouterLink v-if="id" :to="{ name: 'market-types', params: { type: id } }" custom #default="{ navigate }">
|
||||||
<button class="btn-icon me-1" title="Show item info" @click="navigate">
|
<button class="btn-icon me-1" title="Show item info" @click="navigate">
|
||||||
<InformationCircleIcon />
|
<InformationCircleIcon />
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ watch(useRoute(), async route => {
|
|||||||
<span class="text-lg font-semibold">{{ item.name }}</span>
|
<span class="text-lg font-semibold">{{ item.name }}</span>
|
||||||
<div class="ms-auto">
|
<div class="ms-auto">
|
||||||
<ClipboardButton class="ms-1" :value="item.name" />
|
<ClipboardButton class="ms-1" :value="item.name" />
|
||||||
<button v-if="price" class="btn-icon ms-1" title="Add to acquisitions" @click="buyModal?.open(item, { 'Buy': price.buy, 'Sell': price.sell })"><ShoppingCartIcon /></button>
|
<button v-if="price" class="btn-icon ms-1" title="Add acquisitions" @click="buyModal?.open(item, { 'Buy': price.buy, 'Sell': price.sell })"><ShoppingCartIcon /></button>
|
||||||
<button class="btn-icon ms-1" :title="isTracked ? 'Untrack' : 'Track'" @click="toogleTracking">
|
<button class="btn-icon ms-1" :title="isTracked ? 'Untrack' : 'Track'" @click="toogleTracking">
|
||||||
<BookmarkSlashIcon v-if="isTracked" />
|
<BookmarkSlashIcon v-if="isTracked" />
|
||||||
<BookmarkIcon v-else />
|
<BookmarkIcon v-else />
|
||||||
|
|||||||
Reference in New Issue
Block a user