fix: título de tarjeta abre la app real, tablero como acción secundaria
This commit is contained in:
1 parent
16940d5f99
commit
6b0b82fee8
1 file changed
+23
-5
+23
-5
@@ -8,6 +8,7 @@ import {
|
||||
envOf,
|
||||
getModuleMeta,
|
||||
getStatusInfo,
|
||||
isShellModule,
|
||||
moduleUrl,
|
||||
sectionOf,
|
||||
SECTIONS,
|
||||
@@ -36,7 +37,11 @@ export default function Home() {
|
||||
const url = moduleUrl(m);
|
||||
const name = displayName(m.name);
|
||||
const board = boardHref(m);
|
||||
const boardLink = board.external ? (
|
||||
// En el índice público el título abre la aplicación real (externa).
|
||||
// El tablero interno queda como acción secundaria (icono bx-grid-alt).
|
||||
// Solo el módulo shell conserva el título hacia el tablero IT.
|
||||
const shell = isShellModule(m);
|
||||
const boardLink = shell ? (
|
||||
<a
|
||||
href={board.href}
|
||||
className="text-decoration-none text-dark d-block py-2 stretched-link"
|
||||
@@ -44,12 +49,15 @@ export default function Home() {
|
||||
{name}
|
||||
</a>
|
||||
) : (
|
||||
<Link
|
||||
href={board.href}
|
||||
<a
|
||||
href={url}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
title={`Abrir ${url}`}
|
||||
className="text-decoration-none text-dark d-block py-2 stretched-link"
|
||||
>
|
||||
{name}
|
||||
</Link>
|
||||
</a>
|
||||
);
|
||||
return (
|
||||
<div className="col-md-6" key={m.name}>
|
||||
@@ -74,7 +82,17 @@ export default function Home() {
|
||||
</span>
|
||||
</div>
|
||||
</td>
|
||||
<td className="text-end pe-3" style={{ width: 40 }}>
|
||||
<td className="text-end pe-3" style={{ width: 64 }}>
|
||||
{!shell && !board.external && (
|
||||
<Link
|
||||
href={board.href}
|
||||
title="Abrir tablero del módulo"
|
||||
className="position-relative me-2"
|
||||
style={{ zIndex: 2 }}
|
||||
>
|
||||
<i className="bx bx-grid-alt text-muted" />
|
||||
</Link>
|
||||
)}
|
||||
<a
|
||||
href={url}
|
||||
target="_blank"
|
||||
|
||||
Reference in new issue
Block a user