feat: add repository deletion functionality with confirmation modal

This commit is contained in:
tigattack
2025-10-01 01:14:30 +01:00
parent 71b27b4bcf
commit 32ab004f3f
4 changed files with 269 additions and 15 deletions

View File

@@ -132,6 +132,7 @@ export const repositoryAPI = {
getByHost: (hostId) => api.get(`/repositories/host/${hostId}`),
update: (repositoryId, data) =>
api.put(`/repositories/${repositoryId}`, data),
delete: (repositoryId) => api.delete(`/repositories/${repositoryId}`),
toggleHostRepository: (hostId, repositoryId, isEnabled) =>
api.patch(`/repositories/host/${hostId}/repository/${repositoryId}`, {
isEnabled,