Browse Source

fix(nc-gui): update request integration tele event

pull/9169/head
Ramesh Mane 4 months ago
parent
commit
c81ea94eaa
  1. 6
      packages/nc-gui/components/workspace/integrations/IntegrationsTab.vue

6
packages/nc-gui/components/workspace/integrations/IntegrationsTab.vue

@ -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
}

Loading…
Cancel
Save