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,
|
envOf,
|
||||||
getModuleMeta,
|
getModuleMeta,
|
||||||
getStatusInfo,
|
getStatusInfo,
|
||||||
|
isShellModule,
|
||||||
moduleUrl,
|
moduleUrl,
|
||||||
sectionOf,
|
sectionOf,
|
||||||
SECTIONS,
|
SECTIONS,
|
||||||
@@ -36,7 +37,11 @@ export default function Home() {
|
|||||||
const url = moduleUrl(m);
|
const url = moduleUrl(m);
|
||||||
const name = displayName(m.name);
|
const name = displayName(m.name);
|
||||||
const board = boardHref(m);
|
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
|
<a
|
||||||
href={board.href}
|
href={board.href}
|
||||||
className="text-decoration-none text-dark d-block py-2 stretched-link"
|
className="text-decoration-none text-dark d-block py-2 stretched-link"
|
||||||
@@ -44,12 +49,15 @@ export default function Home() {
|
|||||||
{name}
|
{name}
|
||||||
</a>
|
</a>
|
||||||
) : (
|
) : (
|
||||||
<Link
|
<a
|
||||||
href={board.href}
|
href={url}
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
title={`Abrir ${url}`}
|
||||||
className="text-decoration-none text-dark d-block py-2 stretched-link"
|
className="text-decoration-none text-dark d-block py-2 stretched-link"
|
||||||
>
|
>
|
||||||
{name}
|
{name}
|
||||||
</Link>
|
</a>
|
||||||
);
|
);
|
||||||
return (
|
return (
|
||||||
<div className="col-md-6" key={m.name}>
|
<div className="col-md-6" key={m.name}>
|
||||||
@@ -74,7 +82,17 @@ export default function Home() {
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</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
|
<a
|
||||||
href={url}
|
href={url}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
|
|||||||
Reference in new issue
Block a user