misc: add spreadsheet category (#9226)

* misc: add spreadsheet category

* fix(nc-gui): maintain old tele even category

---------

Co-authored-by: Raju Udava <86527202+dstala@users.noreply.github.com>
This commit is contained in:
Ramesh Mane
2024-08-14 14:16:19 +05:30
committed by GitHub
parent fe466ce61a
commit 62d502d53b
4 changed files with 31 additions and 12 deletions

View File

@@ -75,6 +75,7 @@ const integrationsMapByCategory = computed(() => {
title: curr.title,
list: getIntegrationsByCategory(curr.value, searchQuery.value),
isAvailable: curr.isAvailable,
teleEventName: curr.teleEventName,
}
return acc
@@ -85,6 +86,7 @@ const integrationsMapByCategory = computed(() => {
title: string
list: IntegrationItemType[]
isAvailable?: boolean
teleEventName?: IntegrationCategoryType
}
>,
)
@@ -114,7 +116,7 @@ const isAddNewIntegrationModalOpen = computed({
const handleUpvote = (category: IntegrationCategoryType, syncDataType: SyncDataType) => {
if (upvotesData.value.has(syncDataType)) return
$e(`a:integration-request:${category}:${syncDataType}`)
$e(`a:integration-request:${integrationsMapByCategory.value[category]?.teleEventName || category}:${syncDataType}`)
updateSyncDataUpvotes([...syncDataUpvotes.value, syncDataType])
}