mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-01 23:06:35 +00:00
fix(nc-gui): update request integration tele event
This commit is contained in:
@@ -100,17 +100,17 @@ const isAddNewIntegrationModalOpen = computed({
|
||||
},
|
||||
})
|
||||
|
||||
const handleUpvote = (syncDataType: SyncDataType) => {
|
||||
const handleUpvote = (category: IntegrationCategoryType, syncDataType: SyncDataType) => {
|
||||
if (upvotesData.value.has(syncDataType)) return
|
||||
|
||||
$e(`a:integration-request:${syncDataType}`)
|
||||
$e(`a:integration-request:${category}:${syncDataType}`)
|
||||
|
||||
updateSyncDataUpvotes([...syncDataUpvotes.value, syncDataType])
|
||||
}
|
||||
|
||||
const handleAddIntegration = (category: IntegrationCategoryType, integration: IntegrationItemType) => {
|
||||
if (!integration.isAvailable) {
|
||||
handleUpvote(integration.value)
|
||||
handleUpvote(category, integration.value)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user