1
0

73014: Create patch from object-updates and send immediate patch for item-metadata-edit

This commit is contained in:
Kristof De Langhe
2020-09-11 17:34:37 +02:00
parent 4b11e1d9cd
commit 1647c95600
10 changed files with 114 additions and 28 deletions

View File

@@ -275,9 +275,11 @@ export class ObjectCacheService {
* @param {Operation[]} patch
* list of operations to perform
*/
public addPatch(selfLink: string, patch: Operation[]) {
public addPatch(selfLink: string, patch: Operation[], addToSSD = true) {
this.store.dispatch(new AddPatchObjectCacheAction(selfLink, patch));
this.store.dispatch(new AddToSSBAction(selfLink, RestRequestMethod.PATCH));
if (addToSSD) {
this.store.dispatch(new AddToSSBAction(selfLink, RestRequestMethod.PATCH));
}
}
/**