fix change on nodeSelector interface

This commit is contained in:
Eugenio Romano
2020-07-28 17:27:18 +01:00
parent efc6432d1c
commit 1581cfc662
2 changed files with 4 additions and 1 deletions

View File

@@ -140,6 +140,7 @@ export class ContentNodeDialogService {
const data: ContentNodeSelectorComponentData = { const data: ContentNodeSelectorComponentData = {
title: this.getTitleTranslation(action, contentEntry.name), title: this.getTitleTranslation(action, contentEntry.name),
actionName: action, actionName: action,
selectionMode: 'single',
currentFolderId: contentEntry.parentId, currentFolderId: contentEntry.parentId,
imageResolver: this.imageResolver.bind(this), imageResolver: this.imageResolver.bind(this),
where: '(isFolder=true)', where: '(isFolder=true)',
@@ -182,6 +183,7 @@ export class ContentNodeDialogService {
const data: ContentNodeSelectorComponentData = { const data: ContentNodeSelectorComponentData = {
title: this.getTitleTranslation(action, this.translation.instant('DROPDOWN.MY_FILES_OPTION')), title: this.getTitleTranslation(action, this.translation.instant('DROPDOWN.MY_FILES_OPTION')),
actionName: action, actionName: action,
selectionMode: 'single',
currentFolderId: contentEntry.id, currentFolderId: contentEntry.id,
imageResolver: this.imageResolver.bind(this), imageResolver: this.imageResolver.bind(this),
isSelectionValid: this.hasAllowableOperationsOnNodeFolder.bind(this), isSelectionValid: this.hasAllowableOperationsOnNodeFolder.bind(this),
@@ -209,6 +211,7 @@ export class ContentNodeDialogService {
const data: ContentNodeSelectorComponentData = { const data: ContentNodeSelectorComponentData = {
title: this.getTitleTranslation(action, this.translation.instant('DROPDOWN.MY_FILES_OPTION')), title: this.getTitleTranslation(action, this.translation.instant('DROPDOWN.MY_FILES_OPTION')),
actionName: action, actionName: action,
selectionMode: 'single',
currentFolderId: contentEntry.id, currentFolderId: contentEntry.id,
imageResolver: this.imageResolver.bind(this), imageResolver: this.imageResolver.bind(this),
isSelectionValid: (entry: Node) => entry.isFile, isSelectionValid: (entry: Node) => entry.isFile,

View File

@@ -44,7 +44,7 @@ export class UsersActions {
try { try {
if (this.api.apiService.isEcmConfiguration() || (this.api.apiService.isEcmBpmConfiguration())) { if (this.api.apiService.isEcmConfiguration() || (this.api.apiService.isEcmBpmConfiguration())) {
Logger.log('Create user ECM'); Logger.log(`Create user ECM ${user.email}`);
await this.api.apiService.core.peopleApi.addPerson({ await this.api.apiService.core.peopleApi.addPerson({
id: user.email, id: user.email,
email: user.email, email: user.email,