[ASD-2483] Validate folder name on change (#3088)

* notify service refactoring
get translate eliminitation in favor of instant
add error event where necessary
fix config problem during test

* fix delete notify test

* remove fdescribe

* fix core test

* errors

* fix types
This commit is contained in:
Eugenio Romano
2018-03-21 16:55:52 +00:00
committed by GitHub
parent de0fdd9ab4
commit 2951374cc0
25 changed files with 357 additions and 260 deletions

View File

@@ -9,7 +9,7 @@ Shows a dialog listing all the files uploaded with the Upload Button or Drag Are
## Basic Usage
```html
<file-uploading-dialog></file-uploading-dialog>
<adf-file-uploading-dialog></adf-file-uploading-dialog>
```
### Properties
@@ -18,6 +18,12 @@ Shows a dialog listing all the files uploaded with the Upload Button or Drag Are
| ---- | ---- | ------------- | ----------- |
| position | `string` | `'right'` | Dialog position. Can be 'left' or 'right'. |
### Events
| Name | Type | Description |
| ---- | ---- | ----------- |
| error | `EventEmitter<any>` | Emitted when a file upload goes in error |
## Details
This component should be used in combination with the

View File

@@ -27,6 +27,12 @@ Allows folders to be created.
| ---- | ---- | ------------- | ----------- |
| parentNodeId | `string` | `DEFAULT_FOLDER_PARENT_ID` | Parent folder where the new folder will be located after creation. |
### Events
| Name | Type | Description |
| ---- | ---- | ----------- |
| error | `EventEmitter<any>` | Emitted when an error occurs. |
## Details
'FolderCreateDirective' directive needs the id of the parent folder where we want the new folder node to be created. If no value is provided, the '-my-' alias is used.

View File

@@ -27,6 +27,12 @@ Allows folders to be edited.
| ---- | ---- | ------------- | ----------- |
| folder | `MinimalNodeEntryEntity` | | Folder node to edit. |
### Events
| Name | Type | Description |
| ---- | ---- | ----------- |
| error | `EventEmitter<any>` | Emitted when an error occurs. |
## Details
'FolderEditDirective' directive needs a selection folder entry of #documentList to open the folder dialog component to edit the name and description properties of that selected folder.

View File

@@ -17,7 +17,7 @@ Activates a file upload.
[versioning]="false"
(success)="customMethod($event)">
</adf-upload-button>
<file-uploading-dialog></file-uploading-dialog>
<adf-file-uploading-dialog></adf-file-uploading-dialog>
```
### Properties

View File

@@ -14,7 +14,7 @@ Adds a drag and drop area to upload files to Alfresco.
DRAG HERE
</div>
</adf-upload-drag-area>
<file-uploading-dialog></file-uploading-dialog>
<adf-file-uploading-dialog></adf-file-uploading-dialog>
```
```ts
@@ -40,3 +40,4 @@ export class AppComponent {
| Name | Description |
| --- | --- |
| success | Raised when the file is uploaded |
| error | Raised when the file upload goes in error |