mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 08:18:42 +00:00
* Added recently viewed page and show that on workspace homepage * Fixed undo redo * Fixed feedback
31 lines
678 B
Vue
31 lines
678 B
Vue
<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">•</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>
|