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

@@ -12,10 +12,11 @@ type Controls map[string]Control
// A Control basically describes an RPC
type Control struct {
ID string `json:"id"`
Human string `json:"human"`
Icon string `json:"icon"` // from https://fortawesome.github.io/Font-Awesome/cheatsheet/ please
Rank int `json:"rank"`
ID string `json:"id"`
Human string `json:"human"`
Icon string `json:"icon"` // from https://fortawesome.github.io/Font-Awesome/cheatsheet/ please
Confirmation string `json:"confirmation,omitempty"`
Rank int `json:"rank"`
}
// Merge merges other with cs, returning a fresh Controls.