mirror of
https://github.com/harness/drone.git
synced 2025-05-31 11:43:15 +00:00
feat: [AH-885]: fix issue with delete webhook modal in enterprise version (#3488)
* feat: [AH-885]: fix issue with delete webhook modal in enterprise version
This commit is contained in:
parent
26cda57360
commit
149fd2ce01
@ -22,10 +22,9 @@ import { deleteWebhook, type Webhook } from '@harnessio/react-har-service-client
|
||||
|
||||
import { useStrings } from '@ar/frameworks/strings'
|
||||
import { queryClient } from '@ar/utils/queryClient'
|
||||
import { useGetSpaceRef, useParentComponents } from '@ar/hooks'
|
||||
import { useGetSpaceRef, useParentComponents, useParentHooks } from '@ar/hooks'
|
||||
import type { RepositoryDetailsTabPathParams } from '@ar/routes/types'
|
||||
import { PermissionIdentifier, ResourceType } from '@ar/common/permissionTypes'
|
||||
import { useConfirmationDialog } from 'hooks/useConfirmationDialog'
|
||||
|
||||
interface DeleteWebhookActionProps {
|
||||
data: Webhook
|
||||
@ -38,6 +37,7 @@ export default function DeleteWebhookAction(props: DeleteWebhookActionProps) {
|
||||
const { getString } = useStrings()
|
||||
const registryRef = useGetSpaceRef()
|
||||
const { showError, showSuccess, clear } = useToaster()
|
||||
const { useConfirmationDialog } = useParentHooks()
|
||||
const params = useParams<RepositoryDetailsTabPathParams>()
|
||||
|
||||
const handleDeleteWebhook = async (isConfirmed: boolean) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user