Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable primary tool bar with toolbarOptions #163

Merged
merged 4 commits into from
Jan 23, 2025
Merged
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
10 changes: 9 additions & 1 deletion webview/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ function App() {
const [error, setError] = React.useState(false);
const [loading, setLoading] = React.useState(true);

const toolbarOptions = {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @SajidAlamQB this looks like it should be inside a config or something similar if we have one in the vscode?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we do, most of the viz options and settings are found in this file for the extension.

labelBtn: true,
layerBtn: true,
expandPipelinesBtn: false,
exportBtn: false,
};

useEffect(() => {
// Handle messages sent from the extension to the webview
window.addEventListener("message", (event) => {
Expand Down Expand Up @@ -95,7 +102,8 @@ function App() {
globalNavigation: false,
metadataPanel: false,
miniMap: false,
sidebar: false,
sidebar: true,
...toolbarOptions,
},
behaviour: {
reFocus: false,
Expand Down
Loading