Commit 426b9921 authored by El Mghazli Yacine's avatar El Mghazli Yacine

updated tslib

parent 51362d9c
This diff is collapsed.
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
"@angular/platform-browser-dynamic": "~13.2.6", "@angular/platform-browser-dynamic": "~13.2.6",
"@angular/router": "~13.2.6", "@angular/router": "~13.2.6",
"rxjs": "^6.6.6", "rxjs": "^6.6.6",
"tslib": "^2.0.0", "tslib": "^2.3.1",
"zone.js": "^0.11.4" "zone.js": "^0.11.4"
}, },
"devDependencies": { "devDependencies": {
......
...@@ -25,13 +25,13 @@ import { AppComponent } from './app.component'; ...@@ -25,13 +25,13 @@ import { AppComponent } from './app.component';
import { ErrorDialogComponent } from './components/error-dialog/error-dialog.component'; import { ErrorDialogComponent } from './components/error-dialog/error-dialog.component';
import { InterceptorProviders } from './interceptors/interceptors'; import { InterceptorProviders } from './interceptors/interceptors';
import { LoadingService } from './services/loading.service'; import { LoadingService } from './services/loading.service';
import { CommandsComponent } from './components/commands/commands.component';
import { CommandsApi } from './api/commands.api';
import { MatSidenavModule } from '@angular/material/sidenav';
import { BrowserModule } from '@angular/platform-browser'; import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { AppRoutingModule } from './app-routing.module'; import { AppRoutingModule } from './app-routing.module';
import { ReactiveFormsModule } from '@angular/forms'; import { ReactiveFormsModule } from '@angular/forms';
import { CommandsComponent } from './components/commands/commands.component';
import { CommandsApi } from './api/commands.api';
import { MatSidenavModule } from '@angular/material/sidenav';
@NgModule({ @NgModule({
declarations: [ declarations: [
...@@ -40,6 +40,7 @@ import { MatSidenavModule } from '@angular/material/sidenav'; ...@@ -40,6 +40,7 @@ import { MatSidenavModule } from '@angular/material/sidenav';
ErrorDialogComponent ErrorDialogComponent
], ],
imports: [ imports: [
MatSidenavModule,
BrowserModule, BrowserModule,
AppRoutingModule, AppRoutingModule,
BrowserAnimationsModule, BrowserAnimationsModule,
...@@ -56,7 +57,6 @@ import { MatSidenavModule } from '@angular/material/sidenav'; ...@@ -56,7 +57,6 @@ import { MatSidenavModule } from '@angular/material/sidenav';
MatDatepickerModule, MatDatepickerModule,
MatNativeDateModule, MatNativeDateModule,
MatToolbarModule, MatToolbarModule,
MatSidenavModule,
MatListModule, MatListModule,
MatTableModule, MatTableModule,
MatPaginatorModule, MatPaginatorModule,
...@@ -66,7 +66,8 @@ import { MatSidenavModule } from '@angular/material/sidenav'; ...@@ -66,7 +66,8 @@ import { MatSidenavModule } from '@angular/material/sidenav';
MatSlideToggleModule, MatSlideToggleModule,
MatGridListModule, MatGridListModule,
MatCardModule, MatCardModule,
MatMenuModule MatMenuModule,
MatSidenavModule,
], ],
providers: [ providers: [
// services // services
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
<mat-sidenav-content> <mat-sidenav-content>
<mat-toolbar> <mat-toolbar>
<mat-toolbar-row fxLayout="row" fxLayoutAlign="space-between center"> <mat-toolbar-row fxLayout="row" fxLayoutAlign="space-between center">
<ng-template #not_loading> <ng-template #not_loading>
...@@ -17,20 +18,16 @@ ...@@ -17,20 +18,16 @@
</button> </button>
<h1>OAI SoftModem</h1> <h1>OAI SoftModem</h1>
</ng-template> </ng-template>
<ng-template #loading> <ng-template #loading>
<mat-progress-spinner mode="indeterminate" diameter="40"> </mat-progress-spinner> <mat-progress-spinner mode="indeterminate" diameter="40"> </mat-progress-spinner>
</ng-template> </ng-template>
<div fxLayout="row" fxLayoutAlign="start center"> <div fxLayout="row" fxLayoutAlign="start center">
<ng-container *ngIf="loadingService.isLoading$ | async; then loading; else not_loading"> <ng-container *ngIf="loadingService.isLoading$ | async; then loading; else not_loading">
</ng-container> </ng-container>
</div> </div>
<ng-container fxLayout="row">
<a id="email">{{ userService.email }}</a>
<button mat-raised-button color="warn" href="#" (click)="userService.logout()">
logout
</button>
</ng-container>
</mat-toolbar-row> </mat-toolbar-row>
</mat-toolbar> </mat-toolbar>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment