diff --git a/ng2-components/ng2-alfresco-datatable/README.md b/ng2-components/ng2-alfresco-datatable/README.md index 733717418b..b560bf048e 100644 --- a/ng2-components/ng2-alfresco-datatable/README.md +++ b/ng2-components/ng2-alfresco-datatable/README.md @@ -177,7 +177,7 @@ platformBrowserDynamic().bootstrapModule(AppModule); | `data` | DataTableAdapter | instance of **ObjectDataTableAdapter** | data source | | `multiselect` | boolean | false | Toggles multiple row selection, renders checkboxes at the beginning of each row | | `actions` | boolean | false | Toggles data actions column | -| `fallbackThubnail` | string | | Fallback image for row ehre thubnail is missing| +| `fallbackThumbnail` | string | | Fallback image for row ehre thubnail is missing| ### Events diff --git a/ng2-components/ng2-alfresco-documentlist/README.md b/ng2-components/ng2-alfresco-documentlist/README.md index ea4be1c6d1..bb13408c71 100644 --- a/ng2-components/ng2-alfresco-documentlist/README.md +++ b/ng2-components/ng2-alfresco-documentlist/README.md @@ -178,7 +178,7 @@ The properties currentFolderId, folderNode and node are the entry initialization | `navigate` | boolean | true | Toggles navigation to folder content or file preview | | `navigationMode` | string (click\|dblclick) | dblclick | User interaction for folder navigation or file preview | | `thumbnails` | boolean | false | Show document thumbnails rather than icons | -| `fallbackThubnail` | string | | Fallback image for row ehre thubnail is missing| +| `fallbackThumbnail` | string | | Path to fallback image to use if the row thumbnail is missing | | `multiselect` | boolean | false | Toggles multiselect mode | | `contentActions` | boolean | false | Toggles content actions for each row | | `contextMenuActions` | boolean | false | Toggles context menus for each row | diff --git a/ng2-components/ng2-alfresco-documentlist/src/components/document-list.component.html b/ng2-components/ng2-alfresco-documentlist/src/components/document-list.component.html index bb164fbc3c..340bdfad79 100644 --- a/ng2-components/ng2-alfresco-documentlist/src/components/document-list.component.html +++ b/ng2-components/ng2-alfresco-documentlist/src/components/document-list.component.html @@ -8,7 +8,7 @@ [data]="data" [actions]="contentActions" [multiselect]="multiselect" - [fallbackThumbnail]="fallbackThubnail" + [fallbackThumbnail]="fallbackThumbnail" (showRowContextMenu)="onShowRowContextMenu($event)" (showRowActionsMenu)="onShowRowActionsMenu($event)" (executeRowAction)="onExecuteRowAction($event)" diff --git a/ng2-components/ng2-alfresco-documentlist/src/components/document-list.component.ts b/ng2-components/ng2-alfresco-documentlist/src/components/document-list.component.ts index f2a7ebb66d..a849269e38 100644 --- a/ng2-components/ng2-alfresco-documentlist/src/components/document-list.component.ts +++ b/ng2-components/ng2-alfresco-documentlist/src/components/document-list.component.ts @@ -54,7 +54,7 @@ export class DocumentListComponent implements OnInit, OnChanges, AfterContentIni baseComponentPath = module.id.replace('/components/document-list.component.js', ''); @Input() - fallbackThubnail: string = this.baseComponentPath + '/assets/images/ft_ic_miscellaneous.svg'; + fallbackThumbnail: string = this.baseComponentPath + '/assets/images/ft_ic_miscellaneous.svg'; @Input() navigate: boolean = true; diff --git a/ng2-components/ng2-alfresco-upload/README.md b/ng2-components/ng2-alfresco-upload/README.md index 1e288e215b..8f0476eb30 100644 --- a/ng2-components/ng2-alfresco-upload/README.md +++ b/ng2-components/ng2-alfresco-upload/README.md @@ -99,7 +99,7 @@ Follow the 3 steps below: ```html - diff --git a/ng2-components/ng2-alfresco-upload/src/components/upload-button.component.ts b/ng2-components/ng2-alfresco-upload/src/components/upload-button.component.ts index d382631070..4fb35ec486 100644 --- a/ng2-components/ng2-alfresco-upload/src/components/upload-button.component.ts +++ b/ng2-components/ng2-alfresco-upload/src/components/upload-button.component.ts @@ -26,7 +26,7 @@ declare let componentHandler: any; const ERROR_FOLDER_ALREADY_EXIST = 409; /** - * { }); it('should show an folder non supported error in console when the file type is empty', () => { - component.showUdoNotificationBar = false; + component.showNotificationBar = false; spyOn(logService, 'error'); let fileFake = new File([''], 'folder-fake', {type: ''}); @@ -77,7 +77,7 @@ describe('UploadDragAreaComponent', () => { it('should show an folder non supported error in the notification bar when the file type is empty', () => { component.showErrorNotificationBar = jasmine.createSpy('_showErrorNotificationBar'); - component.showUdoNotificationBar = true; + component.showNotificationBar = true; let fileFake = new File([''], 'folder-fake', {type: ''}); component.onFilesDropped([fileFake]); @@ -88,7 +88,7 @@ describe('UploadDragAreaComponent', () => { it('should upload the list of files dropped', () => { component.currentFolderPath = '/root-fake-/sites-fake/folder-fake'; component.onSuccess = null; - component.showUdoNotificationBar = false; + component.showNotificationBar = false; uploadService.addToQueue = jasmine.createSpy('addToQueue'); uploadService.uploadFilesInTheQueue = jasmine.createSpy('uploadFilesInTheQueue'); @@ -104,7 +104,7 @@ describe('UploadDragAreaComponent', () => { it('should show the loading messages in the notification bar when the files are dropped', () => { component.currentFolderPath = '/root-fake-/sites-fake/folder-fake'; component.onSuccess = null; - component.showUdoNotificationBar = true; + component.showNotificationBar = true; uploadService.uploadFilesInTheQueue = jasmine.createSpy('uploadFilesInTheQueue'); component.showUndoNotificationBar = jasmine.createSpy('_showUndoNotificationBar'); @@ -166,7 +166,7 @@ describe('UploadDragAreaComponent', () => { xit('should throws an exception and show it in the notification bar when the folder already exist', done => { component.currentFolderPath = '/root-fake-/sites-fake/folder-fake'; - component.showUdoNotificationBar = true; + component.showNotificationBar = true; fixture.detectChanges(); let fakeRest = { diff --git a/ng2-components/ng2-alfresco-upload/src/components/upload-drag-area.component.ts b/ng2-components/ng2-alfresco-upload/src/components/upload-drag-area.component.ts index a530a0cfe7..9c552f8f85 100644 --- a/ng2-components/ng2-alfresco-upload/src/components/upload-drag-area.component.ts +++ b/ng2-components/ng2-alfresco-upload/src/components/upload-drag-area.component.ts @@ -44,7 +44,7 @@ export class UploadDragAreaComponent { private static DEFAULT_ROOT_ID: string = '-root-'; @Input() - showUdoNotificationBar: boolean = true; + showNotificationBar: boolean = true; @Input() versioning: boolean = false; @@ -83,13 +83,13 @@ export class UploadDragAreaComponent { this.uploadService.addToQueue(files); this.uploadService.uploadFilesInTheQueue(this.rootFolderId, this.currentFolderPath, this.onSuccess); let latestFilesAdded = this.uploadService.getQueue(); - if (this.showUdoNotificationBar) { + if (this.showNotificationBar) { this.showUndoNotificationBar(latestFilesAdded); } } else { let errorMessage: any; errorMessage = this.translateService.get('FILE_UPLOAD.MESSAGES.FOLDER_NOT_SUPPORTED'); - if (this.showUdoNotificationBar) { + if (this.showNotificationBar) { this.showErrorNotificationBar(errorMessage.value); } else { this.logService.error(errorMessage.value); @@ -143,7 +143,7 @@ export class UploadDragAreaComponent { for (let i = 0; i < entries.length; i++) { this._traverseFileTree(entries[i]); } - if (this.showUdoNotificationBar) { + if (this.showNotificationBar) { let latestFilesAdded = this.uploadService.getQueue(); this.showUndoNotificationBar(latestFilesAdded); } @@ -152,7 +152,7 @@ export class UploadDragAreaComponent { error => { let errorMessagePlaceholder = this.getErrorMessage(error.response); let errorMessage = this.formatString(errorMessagePlaceholder, [folder.name]); - if (this.showUdoNotificationBar) { + if (this.showNotificationBar) { this.showErrorNotificationBar(errorMessage); } else { this.logService.error(errorMessage);