|
|
@@ -1,32 +1,37 @@
|
|
|
-<!--<mat-toolbar style="height: 6vh; box-shadow: .5px .5px .5px .5px rgba(0, 0, 0, 0.2); z-index: 100;"
|
|
|
- (window:resize)="onResize($event)">
|
|
|
- <mat-toolbar-row>
|
|
|
- <button type="button" mat-icon-button (click)="drawer.toggle()">
|
|
|
- <mat-icon style="color: white">menu</mat-icon>
|
|
|
- </button>
|
|
|
- <span style="color: #808080"> <span *ngIf="screen_small" style="color: #808080;">Sistema de Ayuda al
|
|
|
- Mantenimiento - </span>SAM</span>
|
|
|
- <span class="example-spacer"></span>
|
|
|
- <span style="color: #808080; font-size: 14px;">Bienvenido<span *ngIf="screen_small" style="color: #808080;"> {{ userName }}</span></span>
|
|
|
- <button mat-button style="color: #808080;" (click)="logout()">
|
|
|
- <mat-icon style="color: white;">logout</mat-icon> Cerra Sesión
|
|
|
- </button>
|
|
|
- </mat-toolbar-row>
|
|
|
-</mat-toolbar>-->
|
|
|
<mat-toolbar class="toolbar" (window:resize)="onResize()">
|
|
|
- <mat-toolbar-row>
|
|
|
- <h1 style="color: #e0e0e0; margin: 0;">{{ title }}</h1>
|
|
|
- <div class="example-spacer">
|
|
|
- <div *ngIf="maintenanceActivated" class="time-counter">
|
|
|
- {{ timeLeft }}
|
|
|
+ <mat-toolbar-row class="p-0">
|
|
|
+ <div class="toolbar-row">
|
|
|
+ <div class="menu-items">
|
|
|
+ <h1 style="color: #e0e0e0; margin: 0;">{{ title }}</h1>
|
|
|
+ <div class="example-spacer">
|
|
|
+ <div *ngIf="maintenanceActivated" class="time-counter">
|
|
|
+ {{ timeLeft }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <button mat-button class="white_font" *ngIf="!isLoading && !maintenanceMode" (click)="modulesActivated = !modulesActivated">
|
|
|
+ <mat-icon style="margin-bottom: 4px;">arrow_drop_down</mat-icon> MÓDULOS
|
|
|
+ </button>
|
|
|
+ <button mat-button [matMenuTriggerFor]="menuA" class="white_font" *ngIf="!isLoading && !maintenanceMode">
|
|
|
+ <mat-icon style="margin-bottom: 4px;">arrow_drop_down</mat-icon> {{ userName }}
|
|
|
+ </button>
|
|
|
+ <mat-menu #menuA="matMenu">
|
|
|
+ <button mat-menu-item><mat-icon>person</mat-icon> Mi perfil</button>
|
|
|
+ <button mat-menu-item><mat-icon>help</mat-icon> Ayuda</button>
|
|
|
+ <button mat-menu-item><mat-icon>key</mat-icon> Cambiar contraseña</button>
|
|
|
+ <button mat-menu-item (click)="logoutTemp()"><mat-icon>logout</mat-icon> Cerrar sesión</button>
|
|
|
+ </mat-menu>
|
|
|
+ <span class="m-8"></span>
|
|
|
+ <div class="search-mat-form-field" *ngIf="!isLoading && !maintenanceMode">
|
|
|
+ <mat-icon class="prefix">search</mat-icon>
|
|
|
+ <input type="text" class="input" placeholder="Buscar ubicaciones, archivos, etc..." #input>
|
|
|
+ <button mat-icon-button [disabled]="input.value === ''">
|
|
|
+ <mat-icon class="suffix">close</mat-icon>
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <div class="dropdown " *ngIf="!isLoading && !maintenanceMode">
|
|
|
- <button mat-button class="dropbtn white_font">
|
|
|
- MÓDULOS <mat-icon style="margin-bottom: 4px;">arrow_drop_down</mat-icon>
|
|
|
- </button>
|
|
|
- <span class="h-16"></span>
|
|
|
- <div class="dropdown-content">
|
|
|
+ <div class="icon-modules-container" [ngClass]="{
|
|
|
+ hidden: !modulesActivated, animate_hide: modulesActivated
|
|
|
+ }">
|
|
|
<div class="row-container">
|
|
|
<div class="row-item" *ngFor="let item of menuItems" (click)="navigate(item.IDMODULO)">
|
|
|
<mat-icon>{{ item.ICONOMODULO }}</mat-icon>
|
|
|
@@ -35,23 +40,19 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <button mat-button [matMenuTriggerFor]="menuA" class="white_font" *ngIf="!isLoading && !maintenanceMode">
|
|
|
- {{ userName }} <mat-icon style="margin-bottom: 4px;">arrow_drop_down</mat-icon>
|
|
|
- </button>
|
|
|
- <mat-menu #menuA="matMenu">
|
|
|
- <button mat-menu-item><mat-icon>person</mat-icon> Mi perfil</button>
|
|
|
- <button mat-menu-item><mat-icon>help</mat-icon> Ayuda</button>
|
|
|
- <button mat-menu-item><mat-icon>key</mat-icon> Cambiar contraseña</button>
|
|
|
- <button mat-menu-item (click)="logoutTemp()"><mat-icon>logout</mat-icon> Cerrar sesión</button>
|
|
|
- </mat-menu>
|
|
|
- <span class="m-8"></span>
|
|
|
- <div class="search-mat-form-field" *ngIf="!isLoading && !maintenanceMode">
|
|
|
- <mat-icon class="prefix">search</mat-icon>
|
|
|
- <input type="text" class="input" placeholder="Buscar ubicaciones, archivos, etc..." #input>
|
|
|
- <button mat-icon-button [disabled]="input.value === ''">
|
|
|
- <mat-icon class="suffix">close</mat-icon>
|
|
|
+ <!--
|
|
|
+ <div class="dropdown" *ngIf="!isLoading && !maintenanceMode">
|
|
|
+ <button mat-button class="white_font" *ngIf="!isLoading && !maintenanceMode">
|
|
|
+ <mat-icon style="margin-bottom: 4px;">arrow_drop_down</mat-icon> MÓDULOS
|
|
|
+ </button>
|
|
|
+ <button mat-button class="dropbtn white_font">
|
|
|
+ <mat-icon style="margin-bottom: 4px;">arrow_drop_down</mat-icon> MÓDULOS
|
|
|
</button>
|
|
|
+ <span class="h-16"></span>
|
|
|
+ <div class="dropdown-content">
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+ -->
|
|
|
</mat-toolbar-row>
|
|
|
</mat-toolbar>
|
|
|
|