[ADF-2672] version manager fixes (#3169)

* fix app config, add extra flags for version manager

* add docs and tests

* update i18n strings

* rename "id" to "nodeId"

* automatically detect permissions

* restore 'id' and mark as deprecated
This commit is contained in:
Denys Vuika
2018-04-11 17:34:45 +01:00
committed by Eugenio Romano
parent 8b4af90b46
commit aba9f41af1
16 changed files with 117 additions and 89 deletions

View File

@@ -98,14 +98,4 @@ describe('VersionManagerComponent', () => {
});
component.onUploadSuccess(emittedData);
});
it('should emit error event upon failure to upload a new version', () => {
fixture.detectChanges();
const errorEvent = new CustomEvent('error');
component.uploadError.subscribe(event => {
expect(event).toBe(errorEvent);
});
component.onUploadError(errorEvent);
});
});