mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-06-02 17:34:51 +00:00
[ACA-4320] Correctly trigger linksUnshared event after unsharing a file (#2037)
* [ACA-4320] Correctly trigger linksUnshared event after unsharing a file * [ACA-4320] Fix unit test * [ACA-4320] Fixed unit test
This commit is contained in:
parent
1c81c0c821
commit
45f89c005a
@ -1429,7 +1429,7 @@ describe('ContentManagementService', () => {
|
|||||||
tick();
|
tick();
|
||||||
flush();
|
flush();
|
||||||
|
|
||||||
expect(contentManagementService.linksUnshared.next).toHaveBeenCalledWith(jasmine.any(Object));
|
expect(contentManagementService.linksUnshared.next).toHaveBeenCalled();
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -245,11 +245,9 @@ export class ContentManagementService {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.afterClosed()
|
.afterClosed()
|
||||||
.subscribe((deletedSharedLink) => {
|
.subscribe(() => {
|
||||||
this.store.dispatch(new SetSelectedNodesAction([node]));
|
this.store.dispatch(new SetSelectedNodesAction([node]));
|
||||||
if (deletedSharedLink) {
|
this.linksUnshared.next();
|
||||||
this.linksUnshared.next(deletedSharedLink);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user