Skip to content

Commit

Permalink
b
Browse files Browse the repository at this point in the history
  • Loading branch information
polterguy committed Dec 24, 2023
1 parent e5513c2 commit 0e1ad48
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@
displayMode="flat"
multi>

<mat-expansion-panel class="mat-elevation-z0">
<mat-expansion-panel
[expanded]="toolboxExpanded"
class="mat-elevation-z0">

<mat-expansion-panel-header class="ps-0 pe-1">
<mat-panel-title>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export class IdeTreeComponent implements OnInit {
currentSelection: string = '';
workflowActions: any[] = [];
workflowSnippets: any[] = [];
toolboxExpanded: boolean = null;

constructor(
private dialog: MatDialog,
Expand Down Expand Up @@ -241,6 +242,11 @@ export class IdeTreeComponent implements OnInit {

} else {

// Checking if we should expand toolbox.
if (file.path.endsWith('.hl') && this.toolboxExpanded === null) {
this.toolboxExpanded = true;
}

// File is not open from before.
const cmOptions = this.getCodeMirrorOptions(file.path);
if (cmOptions === null) {
Expand Down

0 comments on commit 0e1ad48

Please sign in to comment.