Skip to content

Commit

Permalink
afegit nowheel=true per ocultar la rodeta d'opicons al dashboards
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Jul 24, 2023
1 parent 1511b75 commit 3566980
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ <h3 *ngIf="!titleClick" class="eda-title"> {{title}} </h3>
<div>
<span i18n="@@notSavedChanges" class="div-cambios " *ngIf="display_v.notSaved" style="color: var(--panel-font-color);"> Hay cambios sin guardar... </span>

<button *ngIf="display_v.dashboardOptions" (click)="display_v.rightSidebar = true" class="right-side-toggle waves-effect waves-light btn-inverse btn btn-circle btn-sm pull-right m-l-10">
<button *ngIf="!display_v.hideWheel" (click)="display_v.rightSidebar = true" class="right-side-toggle waves-effect waves-light btn-inverse btn btn-circle btn-sm pull-right m-l-10">
<i id="gearButton" class="fa fa-cog text-white" style="font-size: 14px;"></i>
</button>

Expand Down
12 changes: 10 additions & 2 deletions eda/eda_app/src/app/module/pages/dashboard/dashboard.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class DashboardComponent implements OnInit, AfterViewInit, OnDestroy {
edit_mode: true, //editable dashboard
anonimous_mode: false,
notSaved: false,
dashboardOptions: true // dashboard config options (rudeta)
hideWheel: false // dashboard config options (mostrar la rodeta o no)
};

//Date filter ranges Dropdown
Expand Down Expand Up @@ -504,7 +504,15 @@ export class DashboardComponent implements OnInit, AfterViewInit, OnDestroy {
private getUrlParams(): void {
this.route.queryParams.subscribe(params => {
this.queryParams = params;
this.display_v.dashboardOptions = params['nowheel'] ? false : true;
try{
if(params['hideWheel'] == 'true'){
this.display_v.hideWheel =true;
}
}catch(e){
}

console.log(params);
console.log(this.display_v);
});
}

Expand Down

0 comments on commit 3566980

Please sign in to comment.