From 8fb02f60c7678f39f572f07660b2a64608f645f1 Mon Sep 17 00:00:00 2001 From: Timo Date: Thu, 24 Jun 2021 13:22:34 +0300 Subject: [PATCH] fixed user profile update and file workload issue --- .../user-profile-screen.component.ts | 9 +------ .../file-preview-screen.component.ts | 1 + .../user-button/user-button.component.html | 2 +- .../initials-avatar.component.ts | 4 +-- apps/red-ui/src/app/services/user.service.ts | 26 ++++++++++++++----- .../lib/api/redactionLogController.service.ts | 16 ++++++------ 6 files changed, 32 insertions(+), 26 deletions(-) diff --git a/apps/red-ui/src/app/components/user-profile/user-profile-screen.component.ts b/apps/red-ui/src/app/components/user-profile/user-profile-screen.component.ts index 955df78ee..842637d4a 100644 --- a/apps/red-ui/src/app/components/user-profile/user-profile-screen.component.ts +++ b/apps/red-ui/src/app/components/user-profile/user-profile-screen.component.ts @@ -1,18 +1,11 @@ import { Component, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; -import { UserService } from '@services/user.service'; +import { ProfileModel, UserService } from '@services/user.service'; import { PermissionsService } from '@services/permissions.service'; import { LanguageService } from '@i18n/language.service'; import { TranslateService } from '@ngx-translate/core'; import { UserControllerService } from '@redaction/red-ui-http'; -interface ProfileModel { - email: string; - firstName: string; - lastName: string; - language: string; -} - @Component({ selector: 'redaction-user-profile-screen', templateUrl: './user-profile-screen.component.html', diff --git a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/file-preview-screen.component.ts b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/file-preview-screen.component.ts index 868ad1585..4ea2644a5 100644 --- a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/file-preview-screen.component.ts +++ b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/file-preview-screen.component.ts @@ -575,6 +575,7 @@ export class FilePreviewScreenComponent implements OnInit, OnDestroy, OnAttach, private async _loadFileData(performUpdate: boolean = false): Promise { const fileData = await this._fileDownloadService.loadActiveFileData().toPromise(); + console.log(fileData); if (!fileData.fileStatus.isPending && !fileData.fileStatus.isError) { if (performUpdate) { this.fileData.redactionLog = fileData.redactionLog; diff --git a/apps/red-ui/src/app/modules/shared/components/buttons/user-button/user-button.component.html b/apps/red-ui/src/app/modules/shared/components/buttons/user-button/user-button.component.html index 09b1ee3ef..5390a4e5e 100644 --- a/apps/red-ui/src/app/modules/shared/components/buttons/user-button/user-button.component.html +++ b/apps/red-ui/src/app/modules/shared/components/buttons/user-button/user-button.component.html @@ -1,6 +1,6 @@