mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-27 05:47:05 +08:00
Adds a spinner feedback
Because adding a git repo is taking ~4 seconds for me
This commit is contained in:
parent
8dcbbe8183
commit
af26f043fc
1 changed files with 5 additions and 1 deletions
|
|
@ -91,7 +91,11 @@ defmodule LivebookWeb.Hub.FileSystemFormComponent do
|
||||||
<.file_system_form_fields {assigns} />
|
<.file_system_form_fields {assigns} />
|
||||||
|
|
||||||
<div class="flex space-x-2">
|
<div class="flex space-x-2">
|
||||||
<.button type="submit" disabled={@disabled or not @form.source.valid?}>
|
<.button
|
||||||
|
type="submit"
|
||||||
|
disabled={@disabled or not @form.source.valid?}
|
||||||
|
>
|
||||||
|
<.spinner class="hidden phx-submit-loading:block mr-1" />
|
||||||
<.remix_icon icon={@button.icon} />
|
<.remix_icon icon={@button.icon} />
|
||||||
<span class="font-normal">{@button.label}</span>
|
<span class="font-normal">{@button.label}</span>
|
||||||
</.button>
|
</.button>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue