Files
Bram 6e5680264c All workspaces homepage [6/7]: Added recently viewed page (#6107)
* Added recently viewed page and show that on workspace homepage

* Fixed undo redo

* Fixed feedback
2026-09-25 13:32:42 +02:00

31 lines
678 B
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<template>
<ItemCard
:name="item.name"
:icon="item.iconClass"
:icon-color="item.iconColor"
:loading="item.loading"
:title="item.parentPath.join(' › ')"
@click="$emit('click')"
>
<template #meta>
{{ item.typeName }}
<span class="item-card__meta-separator">&#8226;</span>
{{ $t('common.viewedAgo', { ago: item.lastViewedLabel }) }}
</template>
</ItemCard>
</template>
<script setup>
import ItemCard from '@baserow/modules/core/components/ItemCard'
defineProps({
// A presented entry, see `presentEntry` in `RecentlyViewed.vue`.
item: {
type: Object,
required: true,
},
})
defineEmits(['click'])
</script>