@alfresco/aca-content 7.3.0-21361403903 → 7.3.0-21389617351

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -433,6 +433,10 @@
433
433
  "FAIL": "{{ failed }} couldn't be moved."
434
434
  }
435
435
  },
436
+ "NODE_CREATE": {
437
+ "FILE_FROM_TEMPLATE_SUCCESS": "File {{ name }} created from template",
438
+ "FOLDER_FROM_TEMPLATE_SUCCESS": "Folder {{ name }} created from template"
439
+ },
436
440
  "LIBRARY_DELETED": "Library deleted",
437
441
  "LEFT_LIBRARY": "You have left the library",
438
442
  "FAVORITE_NODE_ADDED": "Added {{ name }} to favorites",
@@ -3531,7 +3531,12 @@ class TemplateEffects {
3531
3531
  }
3532
3532
  });
3533
3533
  })), { dispatch: false });
3534
- createFromTemplateSuccess$ = createEffect(() => this.actions$.pipe(ofType(TemplateActionTypes.CreateFromTemplateSuccess), map(() => {
3534
+ createFromTemplateSuccess$ = createEffect(() => this.actions$.pipe(ofType(TemplateActionTypes.CreateFromTemplateSuccess), map((action) => {
3535
+ const node = action.node;
3536
+ const messageKey = node.isFolder
3537
+ ? 'APP.MESSAGES.INFO.NODE_CREATE.FOLDER_FROM_TEMPLATE_SUCCESS'
3538
+ : 'APP.MESSAGES.INFO.NODE_CREATE.FILE_FROM_TEMPLATE_SUCCESS';
3539
+ this.notificationService.showInfo(messageKey, null, { name: node.name });
3535
3540
  this.matDialog.closeAll();
3536
3541
  this.documentListService.reload();
3537
3542
  })), { dispatch: false });