fix: broken list

This commit is contained in:
2025-03-17 02:26:17 +00:00
parent af4929a5b3
commit fe1a32f31b
7 changed files with 23 additions and 20 deletions

View File

@ -1,8 +1,8 @@
<script setup lang="ts">
import Chip from 'primevue/chip';
import { convertFileSrc } from '@tauri-apps/api/core';
import { Package } from '../types';
import { needsUpdate } from '../util';
import { Feature, Package } from '../types';
import { hasFeature, needsUpdate } from '../util';
const props = defineProps({
pkg: Object as () => Package,
@ -52,21 +52,19 @@ const iconSrc = () => {
>
</span>
<span
v-if="pkg?.loc?.kind === 'Hook'"
v-if="hasFeature(pkg, Feature.Hook)"
v-tooltip="'Hook'"
class="pi pi-wrench ml-1 text-blue-400"
>
</span>
<span
v-if="pkg?.loc?.kind === 'GameIO'"
v-if="hasFeature(pkg, Feature.GameIO)"
v-tooltip="'IO'"
class="pi pi-wrench ml-1 text-green-400"
>
</span>
<span
v-if="
pkg?.loc?.kind === 'AMNet' || pkg?.loc?.kind === 'AimeOther'
"
v-if="hasFeature(pkg, Feature.Aime)"
v-tooltip="'Aime'"
class="pi pi-wrench ml-1 text-purple-400"
>