3434 </ a >
3535 </ div >
3636
37- <!-- Notificaciones y Action Buttons -->
37+ <!-- Notificaciones y Action Buttons -->
3838 <!-- <div class="flex items-center gap-3">
3939 <div class="relative" x-data="{ open: false }">
4040 <button
145145 data-tooltip ="Actualizar aplicación web SquidStats "
146146 >
147147 < i class ="fas fa-cloud-download-alt "> </ i >
148- < span > Web </ span >
148+ < span > ProbandoWeb </ span >
149149 </ button >
150150
151151 <!-- Modal Squid -->
@@ -353,27 +353,21 @@ <h3 class="text-xl font-bold text-white">Confirmar Actualización Web</h3>
353353 e . preventDefault ( ) ;
354354 window . location . href = "/blacklist" ;
355355 break ;
356- case "6" :
357- e . preventDefault ( ) ;
358- window . location . href = "/auditoria" ;
359- break ;
360356 }
361357 }
362358 } ) ;
363359 } ) ;
364360
365361 // Close modals when clicking outside
366362 document . addEventListener ( "click" , function ( e ) {
367- if ( e . target . classList . contains ( "fixed" ) && e . target . classList . contains ( "inset-0 ") ) {
368- // Close any open modal by clicking the overlay
363+ if ( e . target . classList . contains ( "modal-overlay " ) ) {
364+ // Close any open modal
369365 const modals = document . querySelectorAll ( "[x-show]" ) ;
370366 modals . forEach ( ( modal ) => {
371- if ( modal . style . display !== "none" ) {
372- const alpineData = Alpine . $data ( modal . closest ( "[x-data]" ) ) ;
373- if ( alpineData ) {
374- alpineData . showSquidModal = false ;
375- alpineData . showWebModal = false ;
376- }
367+ const alpineData = Alpine . $data ( modal ) ;
368+ if ( alpineData ) {
369+ alpineData . showSquidModal = false ;
370+ alpineData . showWebModal = false ;
377371 }
378372 } ) ;
379373 }
@@ -384,12 +378,10 @@ <h3 class="text-xl font-bold text-white">Confirmar Actualización Web</h3>
384378 if ( e . key === "Escape" ) {
385379 const modals = document . querySelectorAll ( "[x-show]" ) ;
386380 modals . forEach ( ( modal ) => {
387- if ( modal . style . display !== "none" ) {
388- const alpineData = Alpine . $data ( modal . closest ( "[x-data]" ) ) ;
389- if ( alpineData ) {
390- alpineData . showSquidModal = false ;
391- alpineData . showWebModal = false ;
392- }
381+ const alpineData = Alpine . $data ( modal ) ;
382+ if ( alpineData ) {
383+ alpineData . showSquidModal = false ;
384+ alpineData . showWebModal = false ;
393385 }
394386 } ) ;
395387 }
0 commit comments