Feature: Service Actions
Virtual servers can now list actions for the user.
This is fully programmatic, so when the virtual server sends statistics and links, it also responds with a list of actions like:
{
"label": "Stop",
"code": "stop_container",
"type": ui.ButtonTypeDanger,
"confirm": {
"title": "Are you sure you want to stop this container?",
"description": "Application data may be lost.",
"button_label": "Confirm"
}
}
Each action has an optional and configurable confirmation dialog. Doing it like this allows the virtual server to have different actions based on the status of the container for example, like start if its stopped and stop/restart if its running.
I also added a loading indicator to all buttons, which shows whenever a HTMX request is being made.
- Sort links by name (to prevent them shuffling)
- Add service actions