diff --git a/src/atlasComponents/sapi/sapi.service.ts b/src/atlasComponents/sapi/sapi.service.ts index c372ac1a825a6db13e4e2ec69fec1f1b29d7dfdd..7cd9209fb6299e521aebf324cc1e55265efbbfda 100644 --- a/src/atlasComponents/sapi/sapi.service.ts +++ b/src/atlasComponents/sapi/sapi.service.ts @@ -22,7 +22,7 @@ export const useViewer = { } as const export const SIIBRA_API_VERSION_HEADER_KEY='x-siibra-api-version' -export const EXPECTED_SIIBRA_API_VERSION = '0.3.12' +export const EXPECTED_SIIBRA_API_VERSION = '0.3.13' let BS_ENDPOINT_CACHED_VALUE: Observable<string> = null diff --git a/src/features/entry/entry.component.ts b/src/features/entry/entry.component.ts index 7d97756ddbead7f809aa2e094f916261b47a8ed3..f3c1b9d1e2e2d53c9d80de3053bc004f2d07a62f 100644 --- a/src/features/entry/entry.component.ts +++ b/src/features/entry/entry.component.ts @@ -11,6 +11,7 @@ import { combineLatest, concat, forkJoin, merge, of, Subject, Subscription } fro import { DsExhausted, IsAlreadyPulling, PulledDataSource } from 'src/util/pullable'; import { TranslatedFeature } from '../list/list.directive'; import { SPECIES_ENUM } from 'src/util/constants'; +import { MatDialog } from '@angular/material/dialog'; const categoryAcc = <T extends Record<string, unknown>>(categories: T[]) => { const returnVal: Record<string, T[]> = {} @@ -64,7 +65,7 @@ export class EntryComponent extends FeatureBase implements AfterViewInit, OnDest @ViewChildren(CategoryAccDirective) catAccDirs: QueryList<CategoryAccDirective> - constructor(private sapi: SAPI, private store: Store) { + constructor(private sapi: SAPI, private store: Store, private dialog: MatDialog) { super() } @@ -247,4 +248,8 @@ export class EntryComponent extends FeatureBase implements AfterViewInit, OnDest pullAll(){ this.#pullAll.next(null) } + + openDialog(tmpl: TemplateRef<unknown>){ + this.dialog.open(tmpl) + } } diff --git a/src/features/module.ts b/src/features/module.ts index 371e30d4a502d47bb36cd93bf33f1618a76ef332..3ccdbbd56eecdeee23be7f4e3df7d07838a81611 100644 --- a/src/features/module.ts +++ b/src/features/module.ts @@ -56,6 +56,9 @@ import { PlotlyComponent } from "./plotly"; ReadmoreModule, MatDialogModule, + /** + * standalone components + */ PlotlyComponent, ], declarations: [