@@ -3,6 +3,7 @@ import BaseLayout from "../layouts/baseLayout.astro";
3
3
import categories from " ../data/profileCategories.json" ;
4
4
import Toast from " ../components/toast/toast.astro" ;
5
5
import CardLink from " ../components/forms/cardLink.astro" ;
6
+ import Tooltip from " ../components/ui/tooltip.astro" ;
6
7
import " ../styles/main.css" ;
7
8
8
9
let categoriesList = [];
@@ -114,14 +115,7 @@ for (const key in categories) {
114
115
</div >
115
116
</div >
116
117
117
- <div
118
- id =" tooltip-reload"
119
- role =" tooltip"
120
- class =" absolute z-10 invisible inline-block px-3 py-2 text-sm font-medium text-white transition-opacity duration-300 bg-gray-900 rounded-lg shadow-sm opacity-0 tooltip dark:bg-gray-700"
121
- >
122
- Recargar datos
123
- <div class =" tooltip-arrow" data-popper-arrow ></div >
124
- </div >
118
+ <Tooltip id =" tooltip-reload" text =" Recargar datos" />
125
119
126
120
<div
127
121
data-popover
@@ -466,13 +460,18 @@ for (const key in categories) {
466
460
}
467
461
468
462
function disableInput() {
463
+ document.getElementById("reloadGithubData").setAttribute("disabled", "");
464
+ document.getElementById("reloadGithubData").classList.add("animate-spin");
469
465
document.getElementById("loadUserBtn").setAttribute("disabled", "");
470
466
document.getElementById("spinner-ico").classList.remove("hidden");
471
467
document.getElementById("spinner-ico").classList.add("inline");
472
468
document.getElementById("github-ico").classList.add("hidden");
469
+
473
470
}
474
471
475
472
function enableInput() {
473
+ document.getElementById("reloadGithubData").removeAttribute("disabled");
474
+ document.getElementById("reloadGithubData").classList.remove("animate-spin");
476
475
document.getElementById("loadUserBtn").removeAttribute("disabled");
477
476
document.getElementById("spinner-ico").classList.add("hidden");
478
477
document.getElementById("spinner-ico").classList.remove("inline");
0 commit comments