mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACA-1821] configurable base path for shared urls (#651)
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"ecmHost": "{protocol}//{hostname}{:port}",
|
"ecmHost": "{protocol}//{hostname}{:port}",
|
||||||
|
"baseShareUrl": null,
|
||||||
"providers": "ECM",
|
"providers": "ECM",
|
||||||
"authType": "BASIC",
|
"authType": "BASIC",
|
||||||
"application": {
|
"application": {
|
||||||
|
@@ -114,12 +114,16 @@ export class AppComponent implements OnInit {
|
|||||||
const languagePicker = this.config.get<boolean>('languagePicker');
|
const languagePicker = this.config.get<boolean>('languagePicker');
|
||||||
this.store.dispatch(new SetLanguagePickerAction(languagePicker));
|
this.store.dispatch(new SetLanguagePickerAction(languagePicker));
|
||||||
|
|
||||||
|
const baseShareUrl =
|
||||||
|
this.config.get<string>('baseShareUrl') ||
|
||||||
|
this.config.get<string>('ecmHost');
|
||||||
|
|
||||||
const state: AppState = {
|
const state: AppState = {
|
||||||
...INITIAL_APP_STATE,
|
...INITIAL_APP_STATE,
|
||||||
appName: this.config.get<string>('application.name'),
|
appName: this.config.get<string>('application.name'),
|
||||||
headerColor: this.config.get<string>('headerColor'),
|
headerColor: this.config.get<string>('headerColor'),
|
||||||
logoPath: this.config.get<string>('application.logo'),
|
logoPath: this.config.get<string>('application.logo'),
|
||||||
sharedUrl: this.config.get<string>('ecmHost') + '/#/preview/s/'
|
sharedUrl: `${baseShareUrl}/#/preview/s/`
|
||||||
};
|
};
|
||||||
|
|
||||||
this.store.dispatch(new SetInitialStateAction(state));
|
this.store.dispatch(new SetInitialStateAction(state));
|
||||||
|
Reference in New Issue
Block a user