Skip to content

Commit

Permalink
Miawong/sc 57763/add ability to delete support bundles from admin con…
Browse files Browse the repository at this point in the history
…sole (#3550)

* add ToastComponent and Context 

* refactor SupportBundleList and SupportBundleRow into functional component

Co-authored-by: Rian Fowler <[email protected]>
  • Loading branch information
miaawong and rianfowler authored Jan 18, 2023
1 parent d8cedbb commit cecb860
Show file tree
Hide file tree
Showing 9 changed files with 877 additions and 587 deletions.
2 changes: 1 addition & 1 deletion pkg/handlers/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func RegisterSessionAuthRoutes(r *mux.Router, kotsStore store.Store, handler KOT
HandlerFunc(middleware.EnforceAccess(policy.AppSupportbundleWrite, handler.CollectHelmSupportBundle))
r.Name("ShareSupportBundle").Path("/api/v1/troubleshoot/app/{appSlug}/supportbundle/{bundleId}/share").Methods("POST").
HandlerFunc(middleware.EnforceAccess(policy.AppSupportbundleWrite, handler.ShareSupportBundle))
r.Name("DeleteSupportBundle").Path("/api/v1/troubleshoot/app/{appSlug}/supportbundle/{bundleId}/delete").Methods("DELETE").
r.Name("DeleteSupportBundle").Path("/api/v1/troubleshoot/app/{appSlug}/supportbundle/{bundleId}").Methods("DELETE").
HandlerFunc(middleware.EnforceAccess(policy.AppSupportbundleWrite, handler.DeleteSupportBundle))
r.Name("GetPodDetailsFromSupportBundle").Path("/api/v1/troubleshoot/app/{appSlug}/supportbundle/{bundleId}/pod").Methods("GET").
HandlerFunc(middleware.EnforceAccess(policy.AppSupportbundleRead, handler.GetPodDetailsFromSupportBundle))
Expand Down
Loading

0 comments on commit cecb860

Please sign in to comment.