remotectl: Fix issues when group is set to a blank string

Treat it the same as NULL

Closes #880
Reviewed-by: Yin Zhang <yizhang@redhat.com>
shell: Add cockpit.confirm function

Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Use cockpit.confirm when deleting containers and images

Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Use cockpit.confirm when erasing storage things

Also, put a warning into the format dialogs.

Fixes #73
Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Include user name in confirmation dialog when deleting an account

Closes #795
Reviewed-by: Stef Walter <stefw@redhat.com>
Fix commands and formatting slightly
test: Fix regression in ownership of /var/lib/cockpit dir

This should be group writable by wheel so wheel users
can add/remove machines.

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Fixes #853
Closes #882
ws: Prevented the unnecessary warning.

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Fixes #858
Closes #883
ws: Don't complain when an HTTP keep alive times out

Just disconnect quietly. Fixes spurious log lines like this
30 seconds after each cockpit login.

cockpit-ws[6184]: request timed out, closing

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Closes #881
shell: Move cockpit_format_bytes into cockpit namespace

And make the function easier to use correctly

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
shell: Put cockpit-storage code in own private scope

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
shell: Move the cockpit_format_bytes_long into storage code

This is where it's used from and it's storage specific.

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
shell: Move cockpit.format_bytes_per_sec into cockpit scope

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
shell: Move cockpit.format_delay into cockpit scope

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
shell: Remove unused cockpit_add_thousands_separater function

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
shell: Move cockpit_format_temperature into storage code

It's currently disk specific, and so scope it appropriately.

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
shell: bits rather than bytes to describe network throughput

Refactor how we build up the suffixes.

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Fixes #855
Closes #877
shell: Restricts bond input to 4 digits

When adding a bond, the user is now restricted from typing in more than 4 digits in various input boxes. These input boxes include the Monotoring Interval, Link up, and Link down.

Reviewed-by: Patrick Uiterwijk
Closes: #878
Fixes: #843
Release version 0.16
common: Run spawned commands from $PATH

This makes us less fragile, when commands move between
directories.