MCPcopy Create free account
hub / github.com/chartbrew/chartbrew / _onDeleteChart

Function _onDeleteChart

client/src/containers/Chart/Chart.jsx:301–313  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

299 };
300
301 const _onDeleteChart = () => {
302 setChartLoading(true);
303 dispatch(removeChart({ project_id: params.projectId, chart_id: chart.id }))
304 .then(() => {
305 setChartLoading(false);
306 setDeleteModal(false);
307 })
308 .catch(() => {
309 setChartLoading(false);
310 setError(true);
311 setDeleteModal(false);
312 });
313 };
314
315 const _onPublicConfirmation = () => {
316 if (chart.public) {

Callers

nothing calls this directly

Calls 2

removeChartFunction · 0.90
dispatchFunction · 0.50

Tested by

no test coverage detected