mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 00:09:40 +02:00
fix(apps): update associated resources on deletion [r8s-124] (#75)
This commit is contained in:
parent
d418784346
commit
c1316532eb
15 changed files with 281 additions and 90 deletions
|
@ -8,14 +8,14 @@ import { queryKeys } from './query-keys';
|
|||
|
||||
export function useDeleteServiceAccountsMutation(environmentId: EnvironmentId) {
|
||||
const queryClient = useQueryClient();
|
||||
return useMutation(deleteServices, {
|
||||
return useMutation(deleteServiceAccounts, {
|
||||
onSuccess: () =>
|
||||
queryClient.invalidateQueries(queryKeys.list(environmentId)),
|
||||
...withGlobalError('Unable to delete service accounts'),
|
||||
});
|
||||
}
|
||||
|
||||
export async function deleteServices({
|
||||
export async function deleteServiceAccounts({
|
||||
environmentId,
|
||||
data,
|
||||
}: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue