mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-08 14:51:32 +00:00
[ADF-2563] Improve versioning functionality (#3335)
* change input with textarea * update file version use now the update content API * provide way to test read only mode version list * fix test * test fix
This commit is contained in:
@@ -59,8 +59,6 @@ describe('UploadBase', () => {
|
||||
fixture = TestBed.createComponent(UploadTestComponent);
|
||||
uploadService = TestBed.get(UploadService);
|
||||
|
||||
spyOn(FileModel.prototype, 'generateId').and.returnValue('test');
|
||||
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
@@ -137,7 +137,7 @@ export abstract class UploadBase {
|
||||
*
|
||||
* @param file
|
||||
*/
|
||||
protected createFileModel(file: File, parentId: string, path: string): FileModel {
|
||||
protected createFileModel(file: File, parentId: string, path: string, id?: string): FileModel {
|
||||
return new FileModel(file, {
|
||||
comment: this.comment,
|
||||
majorVersion: this.majorVersion,
|
||||
@@ -145,7 +145,7 @@ export abstract class UploadBase {
|
||||
parentId: parentId,
|
||||
path: path,
|
||||
nodeType: this.nodeType
|
||||
});
|
||||
}, id);
|
||||
}
|
||||
|
||||
protected isFileSizeAllowed(file: FileModel) {
|
||||
|
Reference in New Issue
Block a user