Skip to content

Commit 57f45e1

Browse files
committed
[ZEPPELIN-6197/6229] fix: make action bar searchCode accessible to siblings
1 parent 1d3d294 commit 57f45e1

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

zeppelin-web-angular/src/app/pages/workspace/notebook/notebook.component.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
[currentRevision]="currentRevision"
2424
(tableHideChange)="setAllParagraphTableHide($event)"
2525
(editorHideChange)="setAllParagraphEditorHide($event)"
26+
#actionBar
2627
></zeppelin-notebook-action-bar>
2728
<div class="flex-container">
2829
<div
@@ -87,6 +88,7 @@
8788
(selected)="onParagraphSelect($event)"
8889
(triggerSaveParagraph)="saveParagraph($event)"
8990
(saveNoteTimer)="startSaveTimer()"
91+
(searchCode)="actionBar.searchCode()"
9092
></zeppelin-notebook-paragraph>
9193
</div>
9294
</div>

zeppelin-web-angular/src/app/pages/workspace/notebook/paragraph/paragraph.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ export class NotebookParagraphComponent extends ParagraphBase implements OnInit,
8484
@Output() readonly triggerSaveParagraph = new EventEmitter<string>();
8585
@Output() readonly selected = new EventEmitter<string>();
8686
@Output() readonly selectAtIndex = new EventEmitter<number>();
87+
@Output() readonly searchCode = new EventEmitter();
8788

8889
private destroy$ = new Subject();
8990
private mode: Mode = 'command';

0 commit comments

Comments
 (0)