Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/src/features/crawl-workflows/workflow-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@ export class WorkflowEditor extends BtrixElement {

disconnectedCallback(): void {
this.onPanelIntersect.cancel();
AppStateService.updateUserGuideOpen(false);
super.disconnectedCallback();
}

Expand Down
14 changes: 0 additions & 14 deletions frontend/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,20 +375,6 @@ export class App extends BtrixElement {
?open=${this.appState.userGuideOpen}
contained
@sl-hide=${() => AppStateService.updateUserGuideOpen(false)}
@sl-after-hide=${() => {
// FIXME There might be a way to handle this in Mkdocs, but updating
// only the hash doesn't seem to update the docs view
const iframe = this.userGuideDrawer.querySelector("iframe");

if (!iframe) return;

const src = iframe.src;
const hashIdx = src.indexOf("#");

if (hashIdx > -1) {
iframe.src = src.slice(0, src.indexOf("#"));
}
}}
>
<span slot="label" class="flex items-center gap-3">
<sl-icon name="book"></sl-icon>
Expand Down
Loading