fixed issue with viewed pages
This commit is contained in:
parent
8f95197266
commit
1df643b4f5
@ -47,7 +47,9 @@ export class PdfViewerDataService {
|
||||
|
||||
getViewedPagesForActiveFile() {
|
||||
if (this._permissionsService.canMarkPagesAsViewed()) {
|
||||
return this._viewedPagesControllerService.getViewedPages(this._appStateService.activeProjectId, this._appStateService.activeFileId);
|
||||
return this._viewedPagesControllerService
|
||||
.getViewedPages(this._appStateService.activeProjectId, this._appStateService.activeFileId)
|
||||
.pipe(catchError(() => of({ pages: [] })));
|
||||
}
|
||||
return of({ pages: [] });
|
||||
}
|
||||
|
||||
@ -250,7 +250,7 @@ export class PermissionsService {
|
||||
if (!fileStatus) {
|
||||
return false;
|
||||
}
|
||||
return (fileStatus.status === 'UNDER_REVIEW' && this.isFileReviewer(fileStatus)) || (fileStatus.status === 'UNDER_APPROVAL' && this.isApprover());
|
||||
return (fileStatus.status === 'UNDER_REVIEW' || fileStatus.status === 'UNDER_APPROVAL') && this.isFileReviewer(fileStatus);
|
||||
}
|
||||
|
||||
canDownloadRedactedFile(fileStatus: FileStatusWrapper) {
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"OAUTH_URL": "https://adi-dev.iqser.cloud/auth/realms/redaction",
|
||||
"API_URL": "https://adi-dev.iqser.cloud/redaction-gateway-v1",
|
||||
"OAUTH_URL": "https://red-staging.iqser.cloud/auth/realms/redaction",
|
||||
"API_URL": "https://red-staging.iqser.cloud/redaction-gateway-v1",
|
||||
"OAUTH_CLIENT_ID": "redaction",
|
||||
"BACKEND_APP_VERSION": "4.4.40",
|
||||
"FRONTEND_APP_VERSION": "1.1",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user