utn-cli 2.1.12 → 2.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -947,11 +947,14 @@ class Miscelaneo {
|
|
|
947
947
|
`a`.`EnlaceDelVideo`,`a`.`EnlaceDelManual`\
|
|
948
948
|
, `a`.`Estado`, REGEXP_SUBSTR(SUBSTRING_INDEX(`a`.`Repositorios`, '/', -1), '[^,]*front[^,]*') AS `Frontend`\
|
|
949
949
|
, `c`.`Etiqueta`, `c`.`ColorDeLaEtiqueta`\
|
|
950
|
+
, (SELECT COUNT(*) FROM `SIGU`.`SIGU_ModulosV2` `h`\
|
|
951
|
+
JOIN `SIGU`.`SIGU_PermisosV2` `hp` ON (`h`.`Nombre` = `hp`.`Modulo`)\
|
|
952
|
+
WHERE `h`.`Estado` = 'Activo' AND `h`.`Padre` = `a`.`Nombre` AND `hp`.`PermisoId` IN (?)) AS `CantidadDeHijos`\
|
|
950
953
|
FROM `SIGU`.`SIGU_ModulosV2` `a`\
|
|
951
954
|
JOIN `SIGU`.`SIGU_PermisosV2` `b` ON (`a`.`Nombre` = `b`.`Modulo`)\
|
|
952
955
|
LEFT JOIN `SIGU`.`SIGU_ModulosV2InformacionExtra` `c` ON (`a`.`Nombre` = `c`.`Modulo`)\
|
|
953
956
|
WHERE `a`.`Estado` = 'Activo' AND `a`.`Padre` = ? AND `b`.`PermisoId` IN (?)\
|
|
954
|
-
ORDER BY FIELD(a.Nombre, " + ModulosFavoritos + ") DESC, a.Nombre", [Padre, Permisos.map(p => p.PermisoId)]);
|
|
957
|
+
ORDER BY FIELD(a.Nombre, " + ModulosFavoritos + ") DESC, a.Nombre", [Permisos.map(p => p.PermisoId), Padre, Permisos.map(p => p.PermisoId)]);
|
|
955
958
|
return Modulos.map((linea) => {
|
|
956
959
|
linea.Enlace = this.generarEnlace(linea.Frontend);
|
|
957
960
|
return linea;
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
} -->
|
|
66
66
|
<div class="contenido">
|
|
67
67
|
@if(TienePermiso){
|
|
68
|
+
@if(Descripcion !== '' && Descripcion !== '-') {
|
|
68
69
|
<div class="cabecera2">
|
|
69
70
|
<div class="cabecera2-info">
|
|
70
71
|
<p class="titulo2">{{ Descripcion }}</p>
|
|
@@ -84,6 +85,7 @@
|
|
|
84
85
|
</div>
|
|
85
86
|
}
|
|
86
87
|
</div>
|
|
88
|
+
}
|
|
87
89
|
<ng-content><router-outlet /></ng-content>
|
|
88
90
|
}@else{
|
|
89
91
|
<h3>No tiene permisos para consultar este módulo</h3>
|