fix some documine issues

This commit is contained in:
Dan Percic 2023-08-18 16:32:35 +03:00
parent a28b233d5f
commit a50d7030f3
3 changed files with 27 additions and 19 deletions

View File

@ -1,21 +1,21 @@
import { inject, Injectable, isDevMode, NgZone } from '@angular/core';
import { IHeaderElement, RotationTypes } from '@red/domain';
import { HeaderElements, HeaderElementType } from '../../file-preview/utils/constants';
import { TranslateService } from '@ngx-translate/core';
import { getConfig, IqserPermissionsService } from '@iqser/common-ui';
import { TooltipsService } from './tooltips.service';
import { BASE_HREF_FN } from '@iqser/common-ui/lib/utils';
import { TranslateService } from '@ngx-translate/core';
import { IHeaderElement, RotationTypes } from '@red/domain';
import { FilesMapService } from '@services/files/files-map.service';
import { Roles } from '@users/roles';
import { fromEvent, Observable, Subject } from 'rxjs';
import { filter, map, tap } from 'rxjs/operators';
import { HeaderElements, HeaderElementType } from '../../file-preview/utils/constants';
import { ROTATION_ACTION_BUTTONS, ROTATION_BUTTONS, ViewerEvents } from '../utils/constants';
import { ViewerEvent, VisibilityChangedEvent } from '../utils/types';
import { REDDocumentViewer } from './document-viewer.service';
import { LayersService } from './layers.service';
import { PageRotationService } from './page-rotation.service';
import { PdfViewer } from './pdf-viewer.service';
import { ROTATION_ACTION_BUTTONS, ROTATION_BUTTONS, ViewerEvents } from '../utils/constants';
import { FilesMapService } from '@services/files/files-map.service';
import { REDDocumentViewer } from './document-viewer.service';
import { fromEvent, Observable, Subject } from 'rxjs';
import { ViewerEvent, VisibilityChangedEvent } from '../utils/types';
import { ReadableRedactionsService } from './readable-redactions.service';
import { filter, map, tap } from 'rxjs/operators';
import { Roles } from '@users/roles';
import { BASE_HREF_FN } from '@iqser/common-ui/lib/utils';
import { TooltipsService } from './tooltips.service';
const divider: IHeaderElement = {
type: 'divider',
@ -353,6 +353,9 @@ export class ViewerHeaderService {
if (this.#iqserPermissionService.has(Roles.getRss)) {
elements = elements.filter(element => element !== HeaderElements.SHAPE_TOOL_GROUP_BUTTON);
}
if (this.#isDocumine) {
elements = elements.filter(element => element !== HeaderElements.COMPARE_BUTTON);
}
elements.forEach(element => this.#config.set(element, value));
this.updateElements();
}

View File

@ -106,13 +106,18 @@
<iqser-round-checkbox [active]="field.value" [size]="18"></iqser-round-checkbox>
{{ 'add-edit-entity.form.dossier-dictionary-only' | translate }}
</span>
<div *ngIf="form.get('manageEntriesInDictionaryEditorOnly')" class="iqser-input-group">
<mat-checkbox
color="primary"
formControlName="manageEntriesInDictionaryEditorOnly"
name="manageEntriesInDictionaryEditorOnly"
>
{{ 'add-edit-entity.form.manage-entries-in-dictionary-editor-only' | translate }}
</mat-checkbox>
</div>
</ng-container>
<div *ngIf="form.get('manageEntriesInDictionaryEditorOnly')" class="iqser-input-group">
<mat-checkbox color="primary" formControlName="manageEntriesInDictionaryEditorOnly" name="manageEntriesInDictionaryEditorOnly">
{{ 'add-edit-entity.form.manage-entries-in-dictionary-editor-only' | translate }}
</mat-checkbox>
</div>
<div *ngIf="form.get('caseSensitive')" class="iqser-input-group">
<mat-checkbox color="primary" formControlName="caseSensitive" name="caseSensitive">
{{ 'add-edit-entity.form.case-sensitive' | translate }}

View File

@ -4,8 +4,8 @@ ADMIN_CONTACT_NAME="${ADMIN_CONTACT_NAME:-}"
ADMIN_CONTACT_URL="${ADMIN_CONTACT_URL:-}"
API_URL="${API_URL:-}"
APP_NAME="${APP_NAME:-}"
IS_DOCUMINE="${IS_DOCUMINE:-}"
RULE_EDITOR_DEV_ONLY="${RULE_EDITOR_DEV_ONLY:-}"
IS_DOCUMINE="${IS_DOCUMINE:-false}"
RULE_EDITOR_DEV_ONLY="${RULE_EDITOR_DEV_ONLY:-true}"
AUTO_READ_TIME="${AUTO_READ_TIME:-1.5}"
BACKEND_APP_VERSION="${BACKEND_APP_VERSION:-4.7.0}"
EULA_URL="${EULA_URL:-}"