mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
593 B
27 lines
593 B
1 year ago
|
<script setup lang="ts">
|
||
|
const props = defineProps<{
|
||
|
item: any
|
||
|
}>()
|
||
|
|
||
|
const router = useRouter()
|
||
|
const route = router.currentRoute
|
||
|
|
||
|
const item = toRef(props, 'item')
|
||
|
|
||
|
const navigateToHome = () => {
|
||
|
if (route.value.path !== '/') {
|
||
|
navigateTo(`/`)
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<template>
|
||
|
<NotificationItemWrapper :item="item" @click="navigateToHome">
|
||
|
<template #avatar>
|
||
|
<img src="~/assets/img/icons/64x64.png" class="w-6" />
|
||
|
</template>
|
||
|
|
||
|
<div class="text-xs">Welcome to <strong>NocoHUB!</strong> We’re excited to have you onboard.</div>
|
||
|
</NotificationItemWrapper>
|
||
|
</template>
|