diff --git a/core/app/src/store/metadata/metadata.store.service.ts b/core/app/src/store/metadata/metadata.store.service.ts index 5c749ad8c..5940ea3bc 100644 --- a/core/app/src/store/metadata/metadata.store.service.ts +++ b/core/app/src/store/metadata/metadata.store.service.ts @@ -156,19 +156,6 @@ export class MetadataStore implements StateStore { ); } - /** - * Internal API - */ - - /** - * Update the state - * - * @param {object} state to set - */ - protected updateState(state: Metadata): void { - this.store.next(internalState = state); - } - /** * Get ListViewMeta cached Observable or call the backend * @@ -176,7 +163,11 @@ export class MetadataStore implements StateStore { * @param {string[]} types to retrieve * @returns {object} Observable */ - protected getMetadata(module: string, types: string[]): Observable { + public getMetadata(module: string, types: string[] = null): Observable { + + if (types === null) { + types = this.getMetadataTypes(); + } let metadataCache: BehaviorSubject = null; // check for currently missing and @@ -225,6 +216,19 @@ export class MetadataStore implements StateStore { ); } + /** + * Internal API + */ + + /** + * Update the state + * + * @param {object} state to set + */ + protected updateState(state: Metadata): void { + this.store.next(internalState = state); + } + /** * Fetch the Metadata from the backend *