refactor: rename toast behavior to tooltip (typo)

This commit is contained in:
Herculino Trotta
2024-10-11 22:04:49 -03:00
parent c59edb7fac
commit c8a9dfb38e
10 changed files with 15 additions and 15 deletions

View File

@@ -38,7 +38,7 @@
data-bs-title="{% translate "Edit" %}"
hx-get="{% url 'account_group_edit' pk=account_group.id %}"
hx-target="#generic-offcanvas"
_="install toast">
_="install tooltip">
<i class="fa-solid fa-pencil fa-fw"></i></a>
<a class="text-danger text-decoration-none p-1 tag-action"
role="button"
@@ -46,7 +46,7 @@
data-bs-title="{% translate "Delete" %}"
hx-delete="{% url 'account_group_delete' pk=account_group.id %}"
hx-trigger='delete_confirmed'
_="install toast
_="install tooltip
on click
if event.ctrlKey trigger delete_confirmed
else

View File

@@ -43,7 +43,7 @@
hx-target="#generic-offcanvas"
_="on click send action_clicked to .tag-action in the closest parent .tag end
on action_clicked call bootstrap.Tooltip.getOrCreateInstance(me).dispose() end
install toast">
install tooltip">
<i class="fa-solid fa-pencil fa-fw"></i></a>
<a class="text-danger text-decoration-none p-1 tag-action"
role="button"
@@ -53,7 +53,7 @@
hx-trigger='delete_confirmed'
_="on click send action_clicked to .tag-action in the closest parent .tag end
on action_clicked call bootstrap.Tooltip.getOrCreateInstance(me).dispose() end
install toast
install tooltip
on click
if event.ctrlKey trigger delete_confirmed
else

View File

@@ -39,7 +39,7 @@
data-bs-title="{% translate "Edit" %}"
hx-get="{% url 'category_edit' category_id=category.id %}"
hx-target="#generic-offcanvas"
_="install toast">
_="install tooltip">
<i class="fa-solid fa-pencil fa-fw"></i></a>
<a class="text-danger text-decoration-none p-1 category-action"
role="button"
@@ -47,7 +47,7 @@
data-bs-title="{% translate "Delete" %}"
hx-delete="{% url 'category_delete' category_id=category.id %}"
hx-trigger='delete_confirmed'
_="install toast
_="install tooltip
on click
if event.ctrlKey trigger delete_confirmed
else

View File

@@ -41,7 +41,7 @@
hx-target="#generic-offcanvas"
_="on click send action_clicked to .tag-action in the closest parent .tag end
on action_clicked call bootstrap.Tooltip.getOrCreateInstance(me).dispose() end
install toast">
install tooltip">
<i class="fa-solid fa-pencil fa-fw"></i></a>
<a class="text-danger text-decoration-none p-1 tag-action"
role="button"
@@ -51,7 +51,7 @@
hx-trigger='delete_confirmed'
_="on click send action_clicked to .tag-action in the closest parent .tag end
on action_clicked call bootstrap.Tooltip.getOrCreateInstance(me).dispose() end
install toast
install tooltip
on click
if event.ctrlKey trigger delete_confirmed
else

View File

@@ -2,7 +2,7 @@
<span class="tw-text-xs text-white-50 mx-1"
data-bs-toggle="tooltip"
data-bs-title="{{ content }}"
_="install toast">
_="install tooltip">
<i class="fa-solid fa-circle-question fa-fw"></i>
</span>
{% endspaceless %}

View File

@@ -6,7 +6,7 @@
{% include 'includes/scripts/hyperscript/init_tom_select.html' %}
{% include 'includes/scripts/hyperscript/hide_amount.html' %}
{% include 'includes/scripts/hyperscript/toast.html' %}
{% include 'includes/scripts/hyperscript/tooltip.html' %}
{% include 'includes/scripts/hyperscript/htmx_error_handler.html' %}
{% javascript_pack 'htmx' attrs="defer" %}

View File

@@ -1,5 +1,5 @@
<script type="text/hyperscript">
behavior toast
behavior tooltip
on mouseenter call bootstrap.Tooltip.getOrCreateInstance(me).show() end
on mouseleave or click call bootstrap.Tooltip.getOrCreateInstance(me).dispose() end
end

View File

@@ -40,7 +40,7 @@
hx-target="#generic-offcanvas"
_="on click send action_clicked to .tag-action in the closest parent .tag end
on action_clicked call bootstrap.Tooltip.getOrCreateInstance(me).dispose() end
install toast">
install tooltip">
<i class="fa-solid fa-pencil fa-fw"></i></a>
<a class="text-danger text-decoration-none p-1 tag-action"
role="button"
@@ -50,7 +50,7 @@
hx-trigger='delete_confirmed'
_="on click send action_clicked to .tag-action in the closest parent .tag end
on action_clicked call bootstrap.Tooltip.getOrCreateInstance(me).dispose() end
install toast
install tooltip
on click
if event.ctrlKey trigger delete_confirmed
else

View File

@@ -87,7 +87,7 @@ my-3"
data-bs-title="{% translate "Edit" %}"
hx-get="{% url 'transaction_edit' transaction_id=transaction.id %}"
hx-target="#generic-offcanvas"
_="install toast">
_="install tooltip">
<i class="fa-solid fa-pencil fa-fw"></i></a>
<a class="text-danger text-decoration-none p-2 transaction-action"
role="button"
@@ -95,7 +95,7 @@ my-3"
data-bs-title="{% translate "Delete" %}"
hx-delete="{% url 'transaction_delete' transaction_id=transaction.id %}"
hx-trigger='delete_confirmed'
_="install toast
_="install tooltip
on click
if event.ctrlKey trigger delete_confirmed
else