Fix bugs with 0.10.0, update changelog

This commit is contained in:
Prospector
2025-07-05 11:33:21 -07:00
parent 0030f35d0c
commit ece8a07486
7 changed files with 37 additions and 13 deletions

View File

@@ -1,4 +1,5 @@
<script setup lang="ts">
import type { Dayjs } from 'dayjs';
import dayjs from 'dayjs'
import {
EyeIcon,
@@ -41,7 +42,8 @@ const emit = defineEmits<{
}>()
const props = defineProps<{
instance: GameInstance
instance: GameInstance,
last_played: Dayjs
}>()
const loadingModpack = ref(!!props.instance.linked_data)
@@ -147,12 +149,12 @@ onUnmounted(() => {
: null
"
class="w-fit shrink-0"
:class="{ 'cursor-help smart-clickable:allow-pointer-events': instance.last_played }"
:class="{ 'cursor-help smart-clickable:allow-pointer-events': last_played }"
>
<template v-if="instance.last_played">
<template v-if="last_played">
{{
formatMessage(commonMessages.playedLabel, {
time: formatRelativeTime(instance.last_played.toISOString()),
time: formatRelativeTime(last_played.toISOString?.()),
})
}}
</template>