mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACA-4557] Upload Dialog fixes and refactoring (#7507)
* fix random errors for versioning * remove node deletion on upload cancel * fix after rebase * restore the "complete" button * simplify e2e * delete obsolte test
This commit is contained in:
@@ -90,7 +90,7 @@ export class DataTableCellComponent implements OnInit, OnDestroy {
|
||||
this.alfrescoApiService.nodeUpdated
|
||||
.pipe(takeUntil(this.onDestroy$))
|
||||
.subscribe(node => {
|
||||
if (this.row) {
|
||||
if (this.row && node && node.id) {
|
||||
if (this.row['node'].entry.id === node.id) {
|
||||
this.row['node'].entry = node;
|
||||
this.row['cache'][this.column.key] = this.column.key.split('.').reduce((source, key) => source ? source[key] : '', node);
|
||||
|
@@ -186,7 +186,10 @@ export class UploadService {
|
||||
promise.next();
|
||||
} else {
|
||||
const performAction = this.getAction(file);
|
||||
performAction();
|
||||
|
||||
if (performAction) {
|
||||
performAction();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user