mirror of
https://gitlab.com/bramw/baserow.git
synced 2024-09-16 17:48:19 +00:00
55 lines
1.4 KiB
JavaScript
55 lines
1.4 KiB
JavaScript
import { NotificationType } from '@baserow/modules/core/notificationTypes'
|
|
import RowCommentMentionNotification from '@baserow_premium/components/row_comments/RowCommentMentionNotification'
|
|
import RowCommentNotification from '@baserow_premium/components/row_comments/RowCommentNotification'
|
|
import NotificationSenderInitialsIcon from '@baserow/modules/core/components/notifications/NotificationSenderInitialsIcon'
|
|
|
|
export class RowCommentMentionNotificationType extends NotificationType {
|
|
static getType() {
|
|
return 'row_comment_mention'
|
|
}
|
|
|
|
getIconComponent() {
|
|
return NotificationSenderInitialsIcon
|
|
}
|
|
|
|
getContentComponent() {
|
|
return RowCommentMentionNotification
|
|
}
|
|
|
|
getRoute(notificationData) {
|
|
return {
|
|
name: 'database-table-row',
|
|
params: {
|
|
databaseId: notificationData.database_id,
|
|
tableId: notificationData.table_id,
|
|
rowId: notificationData.row_id,
|
|
},
|
|
}
|
|
}
|
|
}
|
|
|
|
export class RowCommentNotificationType extends NotificationType {
|
|
static getType() {
|
|
return 'row_comment'
|
|
}
|
|
|
|
getIconComponent() {
|
|
return NotificationSenderInitialsIcon
|
|
}
|
|
|
|
getContentComponent() {
|
|
return RowCommentNotification
|
|
}
|
|
|
|
getRoute(notificationData) {
|
|
return {
|
|
name: 'database-table-row',
|
|
params: {
|
|
databaseId: notificationData.database_id,
|
|
tableId: notificationData.table_id,
|
|
rowId: notificationData.row_id,
|
|
},
|
|
}
|
|
}
|
|
}
|