Skip to content

Commit

Permalink
Add explorer view method for checking panel existence (#62 #106)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonggrijp committed Aug 19, 2020
1 parent 66e6608 commit 1c8ffba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/src/explorer/explorer-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ export default class ExplorerView extends View {
return this;
}

has(cid: string): boolean {
return cid in this.rltPanelStack;
}

/**
* Animated scroll to make a stack visible.
* If the stack is not already visible, apply minimal horizontal scroll so
Expand Down

0 comments on commit 1c8ffba

Please sign in to comment.