Improve loader

This commit is contained in:
Peter Maquiran
2021-07-12 11:13:29 +01:00
parent c526426aec
commit 507ebd691a
34 changed files with 400 additions and 32 deletions
+6 -1
View File
@@ -24,6 +24,7 @@ import { NewEventPage } from './new-event/new-event.page';
import { AuthService } from 'src/app/services/auth.service';
import { User } from 'src/app/models/user.model';
import { DateAdapter } from '@angular/material/core';
import { ToastService } from 'src/app/services/toast.service';
@Component({
selector: 'app-agenda',
@@ -158,7 +159,8 @@ export class AgendaPage implements OnInit {
private alertController: AlertService,
private sanitizer: DomSanitizer,
authService: AuthService,
private dateAdapter: DateAdapter<any>
private dateAdapter: DateAdapter<any>,
private toastService: ToastService
) {
this.dateAdapter.setLocale('es');
@@ -181,6 +183,9 @@ export class AgendaPage implements OnInit {
}
ngOnInit() {
const loader = this.toastService.loading()
this.profile = "mdgpr";
const pathname = window.location.pathname