RED-10647: update manual base link depending on application type.
This commit is contained in:
parent
aa5fc54576
commit
0d20afcf27
@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@ -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',
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user