diff options
Diffstat (limited to 'subprojects/frontend/src/graph/GraphStore.ts')
-rw-r--r-- | subprojects/frontend/src/graph/GraphStore.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/subprojects/frontend/src/graph/GraphStore.ts b/subprojects/frontend/src/graph/GraphStore.ts index 58c4422d..d9282326 100644 --- a/subprojects/frontend/src/graph/GraphStore.ts +++ b/subprojects/frontend/src/graph/GraphStore.ts | |||
@@ -66,7 +66,10 @@ export default class GraphStore { | |||
66 | 66 | ||
67 | selectedSymbol: RelationMetadata | undefined; | 67 | selectedSymbol: RelationMetadata | undefined; |
68 | 68 | ||
69 | constructor(private readonly editorStore: EditorStore) { | 69 | constructor( |
70 | private readonly editorStore: EditorStore, | ||
71 | private readonly nameOverride?: string, | ||
72 | ) { | ||
70 | makeAutoObservable<GraphStore, 'editorStore'>(this, { | 73 | makeAutoObservable<GraphStore, 'editorStore'>(this, { |
71 | editorStore: false, | 74 | editorStore: false, |
72 | semantics: observable.ref, | 75 | semantics: observable.ref, |
@@ -190,4 +193,8 @@ export default class GraphStore { | |||
190 | get colorNodes(): boolean { | 193 | get colorNodes(): boolean { |
191 | return this.editorStore.colorIdentifiers; | 194 | return this.editorStore.colorIdentifiers; |
192 | } | 195 | } |
196 | |||
197 | get name(): string { | ||
198 | return this.nameOverride ?? this.editorStore.simpleNameOrFallback; | ||
199 | } | ||
193 | } | 200 | } |