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.
24 lines
718 B
24 lines
718 B
<script lang="ts" setup> |
|
const notificationStore = useNotification() |
|
|
|
const { unreadCount } = toRefs(notificationStore) |
|
</script> |
|
|
|
<template> |
|
<div class="cursor-pointer flex items-center"> |
|
<NcDropdown overlay-class-name="!shadow-none" placement="bottomRight" :trigger="['click']"> |
|
<NcButton size="small" class="!border-none" type="text"> |
|
<span |
|
v-if="unreadCount" |
|
:key="unreadCount" |
|
class="bg-red-500 w-2 h-2 border-1 border-white rounded-[6px] absolute top-[5px] left-[15px]" |
|
></span> |
|
<GeneralIcon icon="notification" /> |
|
</NcButton> |
|
|
|
<template #overlay> |
|
<NotificationCard /> |
|
</template> |
|
</NcDropdown> |
|
</div> |
|
</template>
|
|
|