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

This commit is contained in:
Ramesh Mane
2024-08-07 11:22:41 +00:00
parent 0a21e64682
commit c81ea94eaa

View File

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