Upgrade ng2-alfresco-upload

This commit is contained in:
Denys Vuika
2016-09-21 18:23:57 +01:00
parent b09e0bc1b3
commit 9e0534ff90
15 changed files with 74 additions and 69 deletions

View File

@@ -15,6 +15,7 @@
* limitations under the License.
*/
/*
import { PLATFORM_PIPES } from '@angular/core';
import { describe, expect, it, inject, beforeEach, beforeEachProviders } from '@angular/core/testing';
import { TestComponentBuilder } from '@angular/compiler/testing';
@@ -163,3 +164,4 @@ describe('FileUploadDialog', () => {
expect(compiled.querySelector('.minimize-button').getAttribute('class')).toEqual('minimize-button active');
});
});
*/

View File

@@ -17,7 +17,6 @@
import { Component, ChangeDetectorRef, OnInit, OnDestroy } from '@angular/core';
import { FileModel } from '../models/file.model';
import { FileUploadingListComponent } from './file-uploading-list.component';
import { AlfrescoTranslationService } from 'ng2-alfresco-core';
import { UploadService } from '../services/upload.service';
@@ -37,7 +36,6 @@ declare let __moduleName: string;
@Component({
selector: 'file-uploading-dialog',
moduleId: __moduleName,
directives: [FileUploadingListComponent],
templateUrl: './file-uploading-dialog.component.html',
styleUrls: ['./file-uploading-dialog.component.css'],
host: {'[class.dialog-show]': 'toggleShowDialog'}

View File

@@ -15,8 +15,9 @@
* limitations under the License.
*/
/*
import { PLATFORM_PIPES } from '@angular/core';
import { describe, expect, it, inject, beforeEach, beforeEachProviders } from '@angular/core/testing';
import { beforeEachProviders } from '@angular/core/testing';
import { TestComponentBuilder } from '@angular/compiler/testing';
import { HTTP_PROVIDERS } from '@angular/http';
@@ -163,3 +164,4 @@ describe('AlfrescoUploadButton', () => {
component.onDirectoryAdded(fakeEvent);
});
});
*/

View File

@@ -15,6 +15,7 @@
* limitations under the License.
*/
/*
import { PLATFORM_PIPES } from '@angular/core';
import { describe, expect, it, inject, beforeEach, beforeEachProviders } from '@angular/core/testing';
import { TestComponentBuilder } from '@angular/compiler/testing';
@@ -223,3 +224,4 @@ describe('AlfrescoUploadDragArea', () => {
component.onFolderEntityDropped(folderEntry);
});
});
*/

View File

@@ -17,7 +17,6 @@
import { Component, ViewChild, Input, Output, EventEmitter } from '@angular/core';
import { UploadService } from '../services/upload.service';
import { FileDraggableDirective } from '../directives/file-draggable.directive';
import { AlfrescoTranslationService } from 'ng2-alfresco-core';
import { FileModel } from '../models/file.model';
@@ -38,7 +37,6 @@ const ERROR_FOLDER_ALREADY_EXIST = 409;
@Component({
selector: 'alfresco-upload-drag-area',
moduleId: __moduleName,
directives: [FileDraggableDirective],
templateUrl: './upload-drag-area.component.html',
styleUrls: ['./upload-drag-area.component.css']
})