mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
committed by
Eugenio Romano
parent
53d96679ea
commit
e39a2b149b
@@ -186,8 +186,8 @@ export class AttachFileWidgetComponent extends UploadWidgetComponent implements
|
||||
let currentECMHost = this.getDomainHost(this.appConfigService.get(AppConfigValues.ECMHOST));
|
||||
let chosenRepositoryHost = this.getDomainHost(repository.repositoryUrl);
|
||||
if (chosenRepositoryHost !== currentECMHost) {
|
||||
let formattedReporistoryHost = repository.repositoryUrl.replace('/alfresco', '');
|
||||
this.attachDialogService.openLogin(formattedReporistoryHost).subscribe(
|
||||
let formattedRepositoryHost = repository.repositoryUrl.replace('/alfresco', '');
|
||||
this.attachDialogService.openLogin(formattedRepositoryHost).subscribe(
|
||||
(selections: any[]) => {
|
||||
selections.forEach((node) => node.isExternal = true);
|
||||
this.tempFilesList.push(...selections);
|
||||
@@ -213,8 +213,8 @@ export class AttachFileWidgetComponent extends UploadWidgetComponent implements
|
||||
)
|
||||
)
|
||||
)
|
||||
.subscribe(([mymeType, res, isExternal]) => {
|
||||
res.mimeType = mymeType;
|
||||
.subscribe(([mimeType, res, isExternal]) => {
|
||||
res.mimeType = mimeType;
|
||||
res.isExternal = isExternal;
|
||||
filesSaved.push(res);
|
||||
},
|
||||
|
Reference in New Issue
Block a user