grav-svelte 0.0.21 → 0.0.23
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.
|
@@ -6,12 +6,13 @@
|
|
|
6
6
|
export let nombreIcono;
|
|
7
7
|
export let notifiacion: number | null;
|
|
8
8
|
export let permiso: boolean;
|
|
9
|
+
export let baseRoute: string;
|
|
9
10
|
</script>
|
|
10
11
|
|
|
11
12
|
{#if permiso == true}
|
|
12
13
|
<div class="sidebar-item">
|
|
13
14
|
<a
|
|
14
|
-
href="{base}/
|
|
15
|
+
href="{base}/{baseRoute}/{nombreRuta}"
|
|
15
16
|
class="sidebar-link"
|
|
16
17
|
>
|
|
17
18
|
<i class="sidebar-icon {nombreIcono}"></i>
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
export let sections: SidebarSection[];
|
|
8
8
|
export let brandName: string;
|
|
9
9
|
export let brandLink: string;
|
|
10
|
+
export let baseRoute: string;
|
|
10
11
|
export let showLogout: boolean = true;
|
|
11
12
|
export let logoutLink: string = "/";
|
|
12
13
|
export let customClass: string = "";
|
|
@@ -97,6 +98,7 @@
|
|
|
97
98
|
nombreIcono={module.icono}
|
|
98
99
|
notifiacion={module.notifiacion ?? null}
|
|
99
100
|
permiso={module.permiso ?? true}
|
|
101
|
+
baseRoute={baseRoute}
|
|
100
102
|
/>
|
|
101
103
|
{/each}
|
|
102
104
|
{/if}
|