diff --git a/apps/red-ui/src/app/modules/dossier/components/file-workload/file-workload.component.html b/apps/red-ui/src/app/modules/dossier/components/file-workload/file-workload.component.html index 00246a91b..350f4f813 100644 --- a/apps/red-ui/src/app/modules/dossier/components/file-workload/file-workload.component.html +++ b/apps/red-ui/src/app/modules/dossier/components/file-workload/file-workload.component.html @@ -2,7 +2,7 @@
@@ -17,6 +17,10 @@
+ + + +
-
+
- + >
- + >
@@ -250,7 +252,6 @@ (action)="toggleSkipped.emit($event)" [icon]="hideSkipped ? 'red:visibility-off' : 'red:visibility'" type="dark-bg" - > - + > diff --git a/apps/red-ui/src/app/modules/dossier/components/file-workload/file-workload.component.scss b/apps/red-ui/src/app/modules/dossier/components/file-workload/file-workload.component.scss index 430a511a0..8247e3df5 100644 --- a/apps/red-ui/src/app/modules/dossier/components/file-workload/file-workload.component.scss +++ b/apps/red-ui/src/app/modules/dossier/components/file-workload/file-workload.component.scss @@ -1,6 +1,26 @@ @import '../../../../../assets/styles/red-variables'; @import '../../../../../assets/styles/red-mixins'; +.read-only { + padding: 13px 0; + background-color: $primary; + color: $white; + + .read-only-text { + padding-left: 8px; + font-size: 11px; + font-weight: 600; + line-height: 14px; + text-align: center; + text-transform: uppercase; + } + + mat-icon { + height: 14px; + width: 14px; + } +} + .right-content { flex-direction: column; @@ -42,7 +62,7 @@ display: flex; height: 100%; - &.multi-select-active { + &.lower-height { height: calc(100% - 40px); } } @@ -140,7 +160,7 @@ } &.active { - &:not(.multi-select-active) .active-bar-marker { + &:not(.lower-height) .active-bar-marker { background-color: $primary; } } diff --git a/apps/red-ui/src/app/modules/dossier/components/file-workload/file-workload.component.ts b/apps/red-ui/src/app/modules/dossier/components/file-workload/file-workload.component.ts index c9cb3f83d..52ff09998 100644 --- a/apps/red-ui/src/app/modules/dossier/components/file-workload/file-workload.component.ts +++ b/apps/red-ui/src/app/modules/dossier/components/file-workload/file-workload.component.ts @@ -19,6 +19,7 @@ import { debounce } from '@utils/debounce'; import { FileDataModel } from '@models/file/file-data.model'; import { FilterModel } from '@shared/components/filters/popup-filter/model/filter.model'; import { CommentsComponent } from '../comments/comments.component'; +import { PermissionsService } from '../../../../services/permissions.service'; const COMMAND_KEY_ARRAY = ['ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown', 'Escape']; const ALL_HOTKEY_ARRAY = ['ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown']; @@ -55,7 +56,8 @@ export class FileWorkloadComponent { constructor( private readonly _changeDetectorRef: ChangeDetectorRef, - private readonly _annotationProcessingService: AnnotationProcessingService + private readonly _annotationProcessingService: AnnotationProcessingService, + private readonly _permissionsService: PermissionsService ) {} private _annotations: AnnotationWrapper[]; @@ -67,6 +69,10 @@ export class FileWorkloadComponent { private _multiSelectActive = false; + get isReadOnly(): boolean { + return !this._permissionsService.canPerformAnnotationActions(); + } + get multiSelectActive(): boolean { return this._multiSelectActive; } diff --git a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/file-preview-screen.component.html b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/file-preview-screen.component.html index cf31ac7d4..4b21400ac 100644 --- a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/file-preview-screen.component.html +++ b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/file-preview-screen.component.html @@ -29,14 +29,6 @@
-
- -
-