1
0

69110: EPeople admin page - CRUD & search on name, email, md

This commit is contained in:
Marie Verdonck
2020-02-26 19:20:14 +01:00
parent 8f1df1921f
commit c14f5bee55
15 changed files with 1038 additions and 45 deletions

View File

@@ -10,6 +10,7 @@ import { coreSelector } from '../core.selectors';
import { RestRequestMethod } from '../data/rest-request-method';
import { selfLinkFromUuidSelector } from '../index/index.selectors';
import { GenericConstructor } from '../shared/generic-constructor';
import { getClassForType } from './builders/build-decorators';
import { LinkService } from './builders/link.service';
import {
AddPatchObjectCacheAction,
@@ -20,7 +21,6 @@ import {
import { CacheableObject, ObjectCacheEntry, ObjectCacheState } from './object-cache.reducer';
import { AddToSSBAction } from './server-sync-buffer.actions';
import { getClassForType } from './builders/build-decorators';
/**
* The base selector function to select the object cache in the store
@@ -48,7 +48,7 @@ export class ObjectCacheService {
constructor(
private store: Store<CoreState>,
private linkService: LinkService
) {
) {
}
/**
@@ -276,6 +276,8 @@ export class ObjectCacheService {
* list of operations to perform
*/
public addPatch(selfLink: string, patch: Operation[]) {
console.log('selfLink addPatch', selfLink)
console.log('patch addPatch', patch)
this.store.dispatch(new AddPatchObjectCacheAction(selfLink, patch));
this.store.dispatch(new AddToSSBAction(selfLink, RestRequestMethod.PATCH));
}