diff --git a/apps/red-ui/src/app/modules/account/screens/preferences/preferences.component.html b/apps/red-ui/src/app/modules/account/screens/preferences/preferences.component.html index cee25d2a8..4cbe5621d 100644 --- a/apps/red-ui/src/app/modules/account/screens/preferences/preferences.component.html +++ b/apps/red-ui/src/app/modules/account/screens/preferences/preferences.component.html @@ -15,7 +15,7 @@ -
+
diff --git a/apps/red-ui/src/app/modules/account/screens/preferences/preferences.component.ts b/apps/red-ui/src/app/modules/account/screens/preferences/preferences.component.ts index be7d64c2e..0d640eb8d 100644 --- a/apps/red-ui/src/app/modules/account/screens/preferences/preferences.component.ts +++ b/apps/red-ui/src/app/modules/account/screens/preferences/preferences.component.ts @@ -1,19 +1,20 @@ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnInit } from '@angular/core'; import { FormBuilder, FormGroup } from '@angular/forms'; import { ActivatedRoute } from '@angular/router'; -import { BaseFormComponent, getConfig, IqserPermissionsService, LoadingService } from '@iqser/common-ui'; +import { BaseFormComponent, getConfig, IqserPermissionsService, isIqserDevMode, LoadingService } from '@iqser/common-ui'; import { AsControl } from '@iqser/common-ui/lib/utils'; import { Roles } from '@users/roles'; import { PreferencesKeys, UserPreferenceService } from '@users/user-preference.service'; interface PreferencesForm { - [k: string]: any; // preferences autoExpandFiltersOnActions: boolean; openScmDialogByDefault: boolean; tableExtractionType: string; // warnings preferences loadAllAnnotationsWarning: boolean; + + [k: string]: any; } type Screen = 'preferences' | 'warnings-preferences'; @@ -36,6 +37,7 @@ export class PreferencesComponent extends BaseFormComponent implements OnInit { initialFormValue: PreferencesForm; readonly roles = Roles; readonly config = getConfig(); + readonly isIqserDevMode = isIqserDevMode(); constructor( route: ActivatedRoute, diff --git a/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.html b/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.html index b69d61abe..91355c5a9 100644 --- a/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.html +++ b/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.html @@ -42,7 +42,7 @@ this.getLastAssignee()); - width: number; @ViewChild('annotationFilterTemplate', { read: TemplateRef, static: false, @@ -103,6 +97,14 @@ export class FilePreviewScreenComponent private readonly _filterTemplate: TemplateRef; @ViewChild('actionsWrapper', { static: false }) private readonly _actionsWrapper: ElementRef; readonly #isDocumine = getConfig().IS_DOCUMINE; + readonly circleButtonTypes = CircleButtonTypes; + readonly roles = Roles; + fullScreen = false; + readonly fileId = this.state.fileId; + readonly dossierId = this.state.dossierId; + readonly lastAssignee = computed(() => this.getLastAssignee()); + width: number; + readonly isIqserDevMode = isIqserDevMode(); constructor( readonly pdf: PdfViewer,