RED-10647: update manual base link depending on application type.

This commit is contained in:
Nicoleta Panaghiu 2024-12-11 18:08:21 +02:00
parent aa5fc54576
commit 0d20afcf27
2 changed files with 10 additions and 4 deletions

View File

@ -1,9 +1,9 @@
import { Inject, inject, Injectable } from '@angular/core';
import { Title } from '@angular/platform-browser';
import { CacheApiService } from '../caching/cache-api.service';
import { wipeAllCaches } from '../caching/cache-utils';
import { IqserAppConfig } from '../utils/iqser-app-config';
import { THEME_DIRECTORIES } from '../utils/constants';
import { CacheApiService } from '../caching';
import { wipeAllCaches } from '../caching';
import { IqserAppConfig } from '../utils';
import { MANUAL_BASE_URL, THEME_DIRECTORIES } from '../utils/constants';
import { IStoredTenantId } from '../tenants';
@Injectable()
@ -31,6 +31,7 @@ export class IqserConfigService<T extends IqserAppConfig = IqserAppConfig> {
...this._values,
IS_DOCUMINE: isDocumine,
THEME: !isDocumine ? THEME_DIRECTORIES.REDACT : THEME_DIRECTORIES.SCM,
MANUAL_BASE_URL: !isDocumine ? MANUAL_BASE_URL.REDACT_MANAGER : MANUAL_BASE_URL.DOCUMINE,
};
}

View File

@ -74,3 +74,8 @@ export const APPLICATION_TYPES = {
} as const;
export type ApplicationType = (typeof APPLICATION_TYPES)[keyof typeof APPLICATION_TYPES];
export const MANUAL_BASE_URL = {
REDACT_MANAGER: 'https://docs.redactmanager.com/preview',
DOCUMINE: 'https://docs.documine.ai/1.2',
};