Skip to content

Commit b290be5

Browse files
author
Alain Bourgeois
committed
import solid-ui/components/header
1 parent 32035cb commit b290be5

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/mainPage/header.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { authSession, authn, store } from 'solid-logic'
22
import { icons, widgets, utils } from 'solid-ui'
3-
import { Header } from 'solid-ui/components/header'
4-
import type { HeaderMenuItem, HeaderAccountMenuItem, HeaderAuthState } from 'solid-ui/components/header'
3+
import 'solid-ui/components/header'
4+
import type { Header, HeaderMenuItem, HeaderAccountMenuItem, HeaderAuthState } from 'solid-ui/components/header'
55
import { OutlineManager } from '../outline/manager'
66
import { LiveStore } from 'rdflib'
77
/**
@@ -48,6 +48,9 @@ export async function createHeader (store: LiveStore, outliner: OutlineManager)
4848

4949
const header = (document.querySelector('solid-ui-header') || document.createElement('solid-ui-header')) as ManagedHeader
5050
const isNewHeader = !header.isConnected
51+
if (!header.id) {
52+
header.id = 'mainSolidUiHeader'
53+
}
5154
header.__solidPanesOutliner = outliner
5255

5356
// ensure it is in DOM (before MainContent for consistency)

src/outline/manager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2274,7 +2274,7 @@ export default function (context) {
22742274
@param table -- option -- default is a HTML table element in which to put the outline.
22752275
*/
22762276
this.GotoSubject = function (subject, expand, pane, solo, referrer, table) {
2277-
table = table || getOutlineContainer() // if does not exist create a compatible host in the current shell
2277+
table = table || getOutlineContainer() // if does not exist create a compatible host in the current shell
22782278
if (solo) {
22792279
UI.utils.emptyNode(table)
22802280
table.style.width = '100%'

0 commit comments

Comments
 (0)