From ecc9d178a2ee6ee00f2e1c8b1e6140669fb13e35 Mon Sep 17 00:00:00 2001 From: Timo Date: Tue, 8 Dec 2020 09:14:10 +0200 Subject: [PATCH] Renamed stuff --- .../project-listing-details.component.scss | 6 +++--- apps/red-ui/src/app/state/app-state.service.ts | 6 +++--- apps/red-ui/src/assets/i18n/en.json | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/red-ui/src/app/screens/project-listing-screen/project-listing-details/project-listing-details.component.scss b/apps/red-ui/src/app/screens/project-listing-screen/project-listing-details/project-listing-details.component.scss index 1d013d2b9..8c83c147c 100644 --- a/apps/red-ui/src/app/screens/project-listing-screen/project-listing-details/project-listing-details.component.scss +++ b/apps/red-ui/src/app/screens/project-listing-screen/project-listing-details/project-listing-details.component.scss @@ -13,9 +13,9 @@ align-items: center; padding-top: 50px; - &:first-child { - border-right: 1px solid $separator; - } + //&:first-child { + // border-right: 1px solid $separator; + //} .project-stats-container { .project-stats-item { diff --git a/apps/red-ui/src/app/state/app-state.service.ts b/apps/red-ui/src/app/state/app-state.service.ts index f4c355113..e690beaae 100644 --- a/apps/red-ui/src/app/state/app-state.service.ts +++ b/apps/red-ui/src/app/state/app-state.service.ts @@ -192,7 +192,7 @@ export class AppStateService { } if (file.status === 'PROCESSING') { const delta = now - file.newestDate.getTime(); - if (delta > 1000 * 60 * 5) { + if (delta > 1000 * 60 * 2) { console.log('Auto-Reanalyse file because of timeout'); this._reanalyseFileInCurrentSessionIfNeeded(project, file); } @@ -207,9 +207,9 @@ export class AppStateService { sessionStorage.setItem('FILE_' + file.fileId, `${new Date().getTime()}`); } else { const now = new Date().getTime(); - const lastAttempt = new Date(result).getTime(); + const lastAttempt = new Date(parseInt(result, 10)).getTime(); const delta = now - lastAttempt; - if (delta > 1000 * 60 * 5) { + if (delta > 1000 * 60 * 2) { this._reanalysisControllerService.reanalyzeFile(project.projectId, file.fileId).subscribe(() => {}); sessionStorage.setItem('FILE_' + file.fileId, `${new Date().getTime()}`); } diff --git a/apps/red-ui/src/assets/i18n/en.json b/apps/red-ui/src/assets/i18n/en.json index 45b1cf2a5..085d531ae 100644 --- a/apps/red-ui/src/assets/i18n/en.json +++ b/apps/red-ui/src/assets/i18n/en.json @@ -369,7 +369,7 @@ "hide-comments": "Hide", "cancel": "Cancel" }, - "error": "Failure", + "error": "Re-processing", "unassigned": "Unassigned", "under-review": "Under Review", "under-approval": "Under Approval",