Skip to content

Commit

Permalink
Posibilidad de crear un dashboard desde el sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
jortilles committed Oct 30, 2023
1 parent dd647aa commit e208932
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 21 deletions.
9 changes: 9 additions & 0 deletions eda/eda_app/src/app/module/pages/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,15 @@ export class HomeComponent implements OnInit {
}
}

public goToDashboard(dashboard): void {
if (dashboard) {
this.router.navigate(['/dashboard', dashboard._id]);
} else {
this.alertService.addError($localize`:@@ErrorMessage:Ha ocurrido un error`);
}
}


public filterTitle(text: any){
const stringToFind = text.target.value.toString().toUpperCase();
if(stringToFind.length > 1) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,20 +71,22 @@
<li class="nav-devider"></li>

<li class="user-profile">
<a class="has-arrow waves-effect waves-dark" href="#" aria-expanded="false">
<a class="has-arrow waves-effect waves-dark" href="#" (click)="checkNotSaved()" aria-expanded="false">

<i class="mdi mdi-view-dashboard"></i>
<span class="hide-menu ml-2" i18n="@@Dashboards_ms"> Informes </span>
</a>
<ul aria-expanded="false" class="collapse">
<li>
<a (click)="checkNotSaved()">
<i class="mdi mdi-view-dashboard"></i>
<span i18n="@@sidebarMyDashboards">Ver informes</span>
<span i18n="@@sidebarMyDashboards"> Ver informes</span>
</a>
</li>
<li>
<a (click)="createDashboard = true;">
<i class="mdi mdi-view-dashboard"></i>
<span i18n="@@tituloNuevoInforme">Nuevo informe</span>
<span i18n="@@tituloNuevoInforme"> Nuevo informe</span>
</a>
</li>
</ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export class SidebarComponent implements OnInit {
public isAdmin: boolean;
public dataSourceMenu: any[] = [];
public edit_mode: boolean = true;
public panelMode: boolean = false; // en mode panel es mostra nomel el panell
public mobileSize: boolean = false;
public sideBtn: boolean = false;
public logoSidebar: string;
Expand Down
14 changes: 8 additions & 6 deletions eda/eda_app/src/locale/messages.ca.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ Entrar<x id="CLOSE_BOLD_TEXT" ctype="x-b" equiv-text="&lt;/b&gt;"/>
</context-group>
</trans-unit>
<trans-unit id="sidebarMyDashboards" datatype="html">
<source>Mis informes</source>
<target>Els meus informes</target>
<source> Mis informes</source>
<target> Els meus informes</target>
<context-group purpose="location">
<context context-type="sourcefile">app/shared/components/sidebar/sidebar.component.html</context>
<context context-type="linenumber">68</context>
Expand Down Expand Up @@ -936,11 +936,9 @@ Entrar<x id="CLOSE_BOLD_TEXT" ctype="x-b" equiv-text="&lt;/b&gt;"/>
</context-group>
</trans-unit>
<trans-unit id="tituloNuevoInforme" datatype="html">
<source>
CREAR UN NUEVO INFORME
<source> CREAR UN NUEVO INFORME
</source>
<target>
CREAR UN NOU INFORME
<target> CREAR UN NOU INFORME
</target>
<context-group purpose="location">
<context context-type="sourcefile">app/module/pages/home/home.component.html</context>
Expand Down Expand Up @@ -1003,6 +1001,10 @@ Entrar<x id="CLOSE_BOLD_TEXT" ctype="x-b" equiv-text="&lt;/b&gt;"/>
<source>Buscar por nombre del informe</source>
<target>Cercar per nom de l'informe</target>
</trans-unit>
<trans-unit id="buscar" datatype="html">
<source>Buscar</source>
<target>Cercar</target>
</trans-unit>
<trans-unit id="selectFuenteDatos" datatype="html">
<source>Selecciona una fuente de datos *</source>
<target>Seleciona una font de dades *</target>
Expand Down
14 changes: 8 additions & 6 deletions eda/eda_app/src/locale/messages.en.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ Login<x id="CLOSE_BOLD_TEXT" ctype="x-b" equiv-text="&lt;/b&gt;"/>
</context-group>
</trans-unit>
<trans-unit id="sidebarMyDashboards" datatype="html">
<source>Mis informes</source>
<target>My dashboards</target>
<source> Mis informes</source>
<target> My dashboards</target>
<context-group purpose="location">
<context context-type="sourcefile">app/shared/components/sidebar/sidebar.component.html</context>
<context context-type="linenumber">68</context>
Expand Down Expand Up @@ -936,11 +936,9 @@ Login<x id="CLOSE_BOLD_TEXT" ctype="x-b" equiv-text="&lt;/b&gt;"/>
</context-group>
</trans-unit>
<trans-unit id="tituloNuevoInforme" datatype="html">
<source>
CREAR UN NUEVO INFORME
<source> CREAR UN NUEVO INFORME
</source>
<target>
CREATE A NEW DASHBOARD
<target> CREATE A NEW DASHBOARD
</target>
<context-group purpose="location">
<context context-type="sourcefile">app/module/pages/home/home.component.html</context>
Expand Down Expand Up @@ -1003,6 +1001,10 @@ Login<x id="CLOSE_BOLD_TEXT" ctype="x-b" equiv-text="&lt;/b&gt;"/>
<source>Buscar por nombre del informe</source>
<target>Search by report name</target>
</trans-unit>
<trans-unit id="buscar" datatype="html">
<source>Buscar</source>
<target>Search</target>
</trans-unit>
<trans-unit id="selectFuenteDatos" datatype="html">
<source>Selecciona una fuente de datos *</source>
<target>Select datasource *</target>
Expand Down
14 changes: 8 additions & 6 deletions eda/eda_app/src/locale/messages.pl.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ Login<x id="CLOSE_BOLD_TEXT" ctype="x-b" equiv-text="&lt;/b&gt;"/>
</context-group>
</trans-unit>
<trans-unit id="sidebarMyDashboards" datatype="html">
<source>Mis informes</source>
<target>Moje raporty</target>
<source> Mis informes</source>
<target> Moje raporty</target>
<context-group purpose="location">
<context context-type="sourcefile">app/shared/components/sidebar/sidebar.component.html</context>
<context context-type="linenumber">68</context>
Expand Down Expand Up @@ -929,11 +929,9 @@ Login<x id="CLOSE_BOLD_TEXT" ctype="x-b" equiv-text="&lt;/b&gt;"/>
</context-group>
</trans-unit>
<trans-unit id="tituloNuevoInforme" datatype="html">
<source>
CREAR UN NUEVO INFORME
<source> CREAR UN NUEVO INFORME
</source>
<target>
STWÓRZ NOWY RAPORT
<target> STWÓRZ NOWY RAPORT
</target>
<context-group purpose="location">
<context context-type="sourcefile">app/module/pages/home/home.component.html</context>
Expand Down Expand Up @@ -996,6 +994,10 @@ Login<x id="CLOSE_BOLD_TEXT" ctype="x-b" equiv-text="&lt;/b&gt;"/>
<source>Buscar por nombre del informe</source>
<target> Szukaj po nazwie raportu</target>
</trans-unit>
<trans-unit id="buscar" datatype="html">
<source>Buscar</source>
<target>Szukaj</target>
</trans-unit>
<trans-unit id="selectFuenteDatos" datatype="html">
<source>Selecciona una fuente de datos *</source>
<target>Wybierz źródło danych *</target>
Expand Down

0 comments on commit e208932

Please sign in to comment.