mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3530, ADF-3598] Sharing files (#3828)
* share node * lint fix * createSharedLinks parameter * remove es6 async * use fakeAsync * removed trailing comma * e2e update dialog title locator * Expires label localization * docs update
This commit is contained in:
committed by
Eugenio Romano
parent
b34ca87657
commit
42f4bee2b4
@@ -2,6 +2,7 @@
|
||||
"$schema": "../../lib/core/app-config/schema.json",
|
||||
"ecmHost": "http://{hostname}:{port}",
|
||||
"bpmHost": "http://{hostname}:{port}",
|
||||
"baseShareUrl": null,
|
||||
"loginRoute": "login",
|
||||
"providers": "ALL",
|
||||
"contextRootBpm": "activiti-app",
|
||||
|
@@ -119,10 +119,13 @@
|
||||
</mat-icon>
|
||||
</button>
|
||||
<button mat-icon-button
|
||||
disabled
|
||||
[disabled]="!shareRef.isFile"
|
||||
[baseShareUrl]="baseShareUrl"
|
||||
#shareRef="adfShare"
|
||||
[adf-share]="documentList.selection[0]"
|
||||
matTooltip="{{ 'DOCUMENT_LIST.TOOLBAR.SHARE' | translate }}">
|
||||
[matTooltip]="(shareRef.isShared
|
||||
? 'DOCUMENT_LIST.TOOLBAR.SHARE_EDIT'
|
||||
: 'DOCUMENT_LIST.TOOLBAR.SHARE') | translate">
|
||||
<mat-icon>
|
||||
share
|
||||
</mat-icon>
|
||||
|
@@ -62,7 +62,9 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
|
||||
displayMode = DisplayMode.List;
|
||||
includeFields = ['isFavorite', 'isLocked', 'aspectNames'];
|
||||
|
||||
baseShareUrl = this.appConfig.get<string>(AppConfigValues.ECMHOST) + '/preview/s/';
|
||||
baseShareUrl = (
|
||||
this.appConfig.get<string>(AppConfigValues.BASESHAREURL) ||
|
||||
this.appConfig.get<string>(AppConfigValues.ECMHOST)) + '/preview/s/';
|
||||
|
||||
toolbarColor = 'default';
|
||||
|
||||
|
Reference in New Issue
Block a user