mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
committed by
Eugenio Romano
parent
53d96679ea
commit
e39a2b149b
@@ -91,7 +91,7 @@ export class ProcessAttachmentListComponent implements OnChanges, AfterContentIn
|
||||
});
|
||||
}
|
||||
|
||||
hasCutomEmptyTemplate() {
|
||||
hasCustomEmptyTemplate() {
|
||||
return !!this.emptyTemplate;
|
||||
}
|
||||
|
||||
|
@@ -32,7 +32,7 @@ describe('TaskAttachmentList', () => {
|
||||
let mockAttachment: any;
|
||||
let deleteContentSpy: jasmine.Spy;
|
||||
let getFileRawContentSpy: jasmine.Spy;
|
||||
let disposablelSuccess: any;
|
||||
let disposableSuccess: any;
|
||||
|
||||
setupTestBed({
|
||||
imports: [ProcessTestingModule],
|
||||
@@ -96,8 +96,8 @@ describe('TaskAttachmentList', () => {
|
||||
overlayContainer.innerHTML = '';
|
||||
});
|
||||
|
||||
if (disposablelSuccess) {
|
||||
disposablelSuccess.unsubscribe();
|
||||
if (disposableSuccess) {
|
||||
disposableSuccess.unsubscribe();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -117,7 +117,7 @@ describe('TaskAttachmentList', () => {
|
||||
|
||||
it('should emit a success event when the attachments are loaded', () => {
|
||||
let change = new SimpleChange(null, '123', true);
|
||||
disposablelSuccess = component.success.subscribe((attachments) => {
|
||||
disposableSuccess = component.success.subscribe((attachments) => {
|
||||
expect(attachments[0].name).toEqual(mockAttachment.data[0].name);
|
||||
expect(attachments[0].id).toEqual(mockAttachment.data[0].id);
|
||||
});
|
||||
|
@@ -34,7 +34,7 @@ export class TaskAttachmentListComponent implements OnChanges, AfterContentInit
|
||||
@Input()
|
||||
taskId: string;
|
||||
|
||||
/** Disable/Enable read only mode for attachement list. */
|
||||
/** Disable/Enable read only mode for attachment list. */
|
||||
@Input()
|
||||
disabled: boolean = false;
|
||||
|
||||
@@ -82,7 +82,7 @@ export class TaskAttachmentListComponent implements OnChanges, AfterContentInit
|
||||
this.attachments = [];
|
||||
}
|
||||
|
||||
hasCutomEmptyTemplate() {
|
||||
hasCustomEmptyTemplate() {
|
||||
return !!this.emptyTemplate;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user