diff options
| author | Jeff Carr <[email protected]> | 2025-04-22 18:49:00 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-04-22 18:49:00 -0500 |
| commit | 4332b3d31a6973a42432d556ae6df3ef721a36fe (patch) | |
| tree | 4aa0513854c9778972bb2d637b9aee898302545f /windowDroplets.go | |
| parent | 2c5701eecad39fd77010f1886d5ad4cd3ad2d34f (diff) | |
working on a droplet edit window
Diffstat (limited to 'windowDroplets.go')
| -rw-r--r-- | windowDroplets.go | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/windowDroplets.go b/windowDroplets.go index 807ff41..109f3cc 100644 --- a/windowDroplets.go +++ b/windowDroplets.go @@ -91,9 +91,7 @@ func makeWindownDropletsPB(pb *virtpb.Droplets) *stdDropletTableWin { return dwin } -*/ -/* func (dwin *stdDropletTableWin) doDropletsTable(currentDroplets *virtpb.Droplets) { dwin.Lock() defer dwin.Unlock() @@ -147,32 +145,28 @@ func (dw *stdDropletTableWin) doInactiveDroplets(pb *virtpb.Droplets) { t.NewUuid() t.SetParent(dw.box) - // pick the columns - // t.AddHostname() + dropedit := t.AddButtonFunc("Edit", func(d *virtpb.Droplet) string { + return "edit" + }) + dropedit.Custom = func(d *virtpb.Droplet) { + log.Info("edit droplet here", d.Hostname) + editDropletWindow(d) + } + dropon := t.AddButtonFunc("Start", func(d *virtpb.Droplet) string { return "poweron" }) dropon.Custom = func(d *virtpb.Droplet) { log.Info("start droplet here", d.Hostname) } - /* - t.AddHostname() - t.AddStringFunc("location", func(d *virtpb.Droplet) string { - return d.Current.Hypervisor - }) - */ + vp := t.AddButtonFunc("Verify Config", func(p *virtpb.Droplet) string { return p.Hostname }) vp.Custom = func(d *virtpb.Droplet) { log.Info("open config window", d.Hostname) } - /* - t.AddHostname() - t.AddStringFunc("location", func(d *virtpb.Droplet) string { - return d.Current.Hypervisor - }) - */ + t.AddMemory() t.AddCpus() |
