()
| 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) { |
nothing calls this directly
no test coverage detected