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
+5 -4
View File
@@ -19,6 +19,7 @@ import { InitialsService } from './functions/initials.service';
import { PermissionService } from './permission.service';
import { ChatSystemService } from 'src/app/services/chat/chat-system.service';
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
import { DocumentManagementStore } from '../store/documentManagement';
@Injectable({
providedIn: 'root'
})
@@ -32,6 +33,8 @@ export class AuthService {
tabIsActive = true
DocumentManagementStore = DocumentManagementStore
constructor(
private http: HttpClient,
private storageService:StorageService,
@@ -116,10 +119,8 @@ export class AuthService {
if(saveSession) {
/* this.SetSession(response, user) */
this.storageService.store('userContentProduction',response)
this.storageService.get('userContentProduction').then((value) =>{
console.log('JWW', value.AuthorizationJwt);
})
this.DocumentManagementStore.setData(response)
}
} catch (error) {
this.httpErroHandle.httpStatusHandle(error)