diff --git a/Front/src/App.svelte b/Front/src/App.svelte index 9c4747f..9accdc5 100644 --- a/Front/src/App.svelte +++ b/Front/src/App.svelte @@ -31,6 +31,7 @@ import BuscarVentas from "./paginas/BuscarVentas.svelte"; import MisPropiedadesEnVenta from "./paginas/MisPropiedadesEnVenta.svelte"; import AdminGrupos from "./paginas/AdminGrupos.svelte"; + import OtroG from "./paginas/grupos/OtroG.svelte"; @@ -151,6 +152,9 @@ + + + diff --git a/Front/src/Componentes/RutaProtegida.svelte b/Front/src/Componentes/RutaProtegida.svelte index 661ea2c..254fa54 100644 --- a/Front/src/Componentes/RutaProtegida.svelte +++ b/Front/src/Componentes/RutaProtegida.svelte @@ -1,55 +1,59 @@ - + {#if !$isVerified} -
-
- Loading... -
-
+
+
+ Loading... +
+
+{:else if $isAuthenticated} + {#if typeof componente === "object" && componente !== null} + {@render componente.OtroG(componente.params)} + {:else} + {@render componente()} + {/if} {:else} - {#if $isAuthenticated} - {@render componente()} - {:else} - {window.location.replace('/')} - {/if} -{/if} + {window.location.replace("/")} +{/if} diff --git a/Front/src/paginas/grupos/OtroG.svelte b/Front/src/paginas/grupos/OtroG.svelte new file mode 100644 index 0000000..52d909f --- /dev/null +++ b/Front/src/paginas/grupos/OtroG.svelte @@ -0,0 +1,13 @@ + + + +
+
+

Menu grupo: {id}

+
+ +