set data to store

This commit is contained in:
Peter Maquiran
2023-07-06 13:13:23 +01:00
parent c9c631536d
commit 8db8fa4ea3
4 changed files with 18 additions and 14 deletions
+3
View File
@@ -19,6 +19,7 @@ import { Platform } from '@ionic/angular';
import { FirstEnterService } from '../../services/first-enter.service';
import { Storage } from '@ionic/storage';
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
import { DocumentManagementStore } from 'src/app/store/documentManagement';
@Component({
selector: 'app-login',
templateUrl: './login.page.html',
@@ -38,6 +39,7 @@ export class LoginPage implements OnInit {
sessionStore = SessionStore;
showPassword = false;
passwordIcon = "eye";
DocumentManagementStore = DocumentManagementStore
constructor(
private notificatinsservice: NotificationsService,
@@ -152,6 +154,7 @@ export class LoginPage implements OnInit {
window.localStorage.clear();
await MessageModel.deleteAll();
await DeleteMessageModel.deleteAll();
this.DocumentManagementStore.clear();
this.storage.clear();
await this.authService.SetSession(attempt, this.userattempt);