swarm-ui: show a spinner on a busy submit button instead of swapping its label
Twenty save, link, create, send, run, load and log-in buttons changed their label to "saving…" or similar while a request ran, so the button changed width under the cursor. They now use Button's busy prop like the message box and the broadcast dialog do: a spinner covers the label, which keeps its space. No behaviour change; the buttons are disabled while busy as before.
This commit is contained in:
parent
79f2d4bd4d
commit
5dfff854d5
1 changed files with 72 additions and 27 deletions
|
|
@ -641,7 +641,8 @@ tab, follow a link in the app, or press the browser's back button. Choose
|
|||
Under an agent's terminal, in the preview and in its own tab, is a **message**
|
||||
box, with the agent's name as its placeholder. **send** hands the text to the agent's
|
||||
harness, and the agent takes it as an inbox message from your authelia username.
|
||||
While the request is pending, a spinner replaces the button's label. When it
|
||||
While the request is pending, a spinner replaces the button's label, as it does on
|
||||
every save, link and create button, and the button keeps its width. When it
|
||||
ends, the box empties: the harness was listening and holds the message. If the
|
||||
harness isn't running, or isn't connected to the swarm queue, the box shows an
|
||||
error and the agent gets nothing.
|
||||
|
|
|
|||
Loading…
Reference in a new issue