feat(web): add tooltips to icon-only action buttons
This commit is contained in:
parent
bec49f0771
commit
035edae522
10 changed files with 144 additions and 44 deletions
|
|
@ -586,15 +586,25 @@ defmodule MvWeb.GlobalSettingsLive do
|
|||
>
|
||||
{gettext("Test Integration")}
|
||||
</.button>
|
||||
<.button
|
||||
<.tooltip
|
||||
:if={Mv.Config.vereinfacht_configured?()}
|
||||
type="button"
|
||||
variant="secondary"
|
||||
phx-click="sync_vereinfacht_contacts"
|
||||
phx-disable-with={gettext("Syncing...")}
|
||||
content={
|
||||
gettext(
|
||||
"Creates a Vereinfacht finance contact for every member that does not have one yet."
|
||||
)
|
||||
}
|
||||
position="top"
|
||||
>
|
||||
{gettext("Sync all members without Vereinfacht contact")}
|
||||
</.button>
|
||||
<.button
|
||||
type="button"
|
||||
variant="secondary"
|
||||
phx-click="sync_vereinfacht_contacts"
|
||||
phx-disable-with={gettext("Syncing...")}
|
||||
aria-label={gettext("Sync all members without Vereinfacht contact")}
|
||||
>
|
||||
{gettext("Sync all members without Vereinfacht contact")}
|
||||
</.button>
|
||||
</.tooltip>
|
||||
</div>
|
||||
<%= if @vereinfacht_test_result do %>
|
||||
<.vereinfacht_test_result result={@vereinfacht_test_result} />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue