(idpId: number)
| 237 | }; |
| 238 | |
| 239 | const unassociateIdp = async (idpId: number) => { |
| 240 | try { |
| 241 | await api.delete(`/org/${orgId}/idp/${idpId}/association`); |
| 242 | toast({ |
| 243 | title: t("success"), |
| 244 | description: t("idpUnassociatedDescription") |
| 245 | }); |
| 246 | setIsUnassociateModalOpen(false); |
| 247 | router.refresh(); |
| 248 | } catch (e) { |
| 249 | toast({ |
| 250 | title: t("error"), |
| 251 | description: formatAxiosError(e), |
| 252 | variant: "destructive" |
| 253 | }); |
| 254 | } |
| 255 | }; |
| 256 | |
| 257 | const columns: ExtendedColumnDef<IdpRow>[] = [ |
| 258 | { |
no test coverage detected