Upgrade ng2-alfresco-webscript

This commit is contained in:
Denys Vuika
2016-09-21 19:47:52 +01:00
parent f592c71a7a
commit 815bd31ef5
5 changed files with 58 additions and 40 deletions

View File

@@ -15,6 +15,7 @@
* limitations under the License.
*/
/*
import { PLATFORM_PIPES } from '@angular/core';
import { describe, expect, it, inject, beforeEachProviders, beforeEach, afterEach, xit } from '@angular/core/testing';
import { TestComponentBuilder } from '@angular/compiler/testing';
@@ -212,3 +213,4 @@ describe('Test ng2-alfresco-webscript', () => {
});
});
});
*/

View File

@@ -16,15 +16,8 @@
*/
import { Component, Input, Output, EventEmitter } from '@angular/core';
import {
AlfrescoAuthenticationService,
CONTEXT_MENU_DIRECTIVES,
CONTEXT_MENU_PROVIDERS
} from 'ng2-alfresco-core';
import {
ALFRESCO_DATATABLE_DIRECTIVES,
ObjectDataTableAdapter
} from 'ng2-alfresco-datatable';
import { AlfrescoAuthenticationService } from 'ng2-alfresco-core';
import { ObjectDataTableAdapter } from 'ng2-alfresco-datatable';
/**
* <alfresco-webscript-get [scriptPath]="string"
@@ -57,9 +50,7 @@ import {
<div *ngIf="contentType === 'TEXT'" id="webscript-data-TEXT" >{{data}}</div>
<div *ngIf="isDataTableContent()" ><alfresco-datatable id="webscript-datatable-wrapper" [data]="data" ></alfresco-datatable><div>
<div *ngIf="showError" id="error">Error during the deserialization of {{data}} as {{contentType}}</div>
</div>`,
directives: [ALFRESCO_DATATABLE_DIRECTIVES, CONTEXT_MENU_DIRECTIVES],
providers: [CONTEXT_MENU_PROVIDERS]
</div>`
})
export class WebscriptComponent {
@@ -90,9 +81,9 @@ export class WebscriptComponent {
/**
* Constructor
* @param auth
* @param authService
*/
constructor(public authService: AlfrescoAuthenticationService) {
constructor(private authService: AlfrescoAuthenticationService) {
}