Add a confirmation dialog for deleting a pod.

This commit is contained in:
Filip Barl
2019-02-25 16:41:15 +01:00
parent 6074655eb0
commit e66a3e08dc
5 changed files with 42 additions and 31 deletions

View File

@@ -538,10 +538,11 @@ func (r *Reporter) podTopology(services []Service, deployments []Deployment, dae
Rank: 0,
})
pods.Controls.AddControl(report.Control{
ID: DeletePod,
Human: "Delete",
Icon: "far fa-trash-alt",
Rank: 1,
ID: DeletePod,
Human: "Delete",
Icon: "far fa-trash-alt",
Confirmation: "Are you sure you want to delete this pod?",
Rank: 1,
})
for _, service := range services {
selectors = append(selectors, match(