mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-03 16:27:18 +00:00
* feat: notifications wip * feat: wip * feat: longpoll and notifications.controller.ts * feat: longpoll and notifications.controller.ts * feat: enable email notifications * fix: notification styles and list * fix: update swagger feat: connect poller to frontend * fix: minor ui corrections * feat: move notifications to ee feat: scroll to commentId fix: polling fail on network error fix: unreadcount not updating fix: add workspace to comment mention event * fix: pubsub for notifications * fix: warning maxListeners * fix: update ui * fix: minor fixes * chore: move pub-sub to redis folder * fix: update ui and schema feat: optimistic comment update and create * fix: row empty during inital load causing row not loading * fix: build * fix: some updated * fix: minor ui corrections * fix: manage local state manually for interactivity * fix: remove prev notifcation data * fix: review comments * fix: code rabbit comments * fix: code rabbit comments * feat: delete notifications * fix: code rabbit comments * fix: row RowMeta manipulation fix: overflow notifications * fix: invalid offset * fix: updated widths * fix: tests * fix: playwright * feat: resolved by comments * feat: update layout * fix: wait 5 seconds before polling start, after polling starts, reload the notifications * fix: bug fixes * fix: disable long polling for playwright * fix: update migration * fix: lint * fix: code rabbit comments * fix: resolve tooltip * feat: resolve ee * fix: build failing * fix: review comments * fix: dependency synx * fix: update notification style
25 lines
735 B
Vue
25 lines
735 B
Vue
<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 !bg-gray-50" type="secondary">
|
|
<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>
|