Skip to content

Commit 8f02004

Browse files
authored
Enable primary tool bar with toolbarOptions (#163)
* draft Signed-off-by: Sajid Alam <sajid_alam@mckinsey.com> * enable sidebar Signed-off-by: Sajid Alam <sajid_alam@mckinsey.com> * add toolbarOptions Signed-off-by: Sajid Alam <sajid_alam@mckinsey.com> * disable the expandPipelinesBtn Signed-off-by: Sajid Alam <sajid_alam@mckinsey.com> --------- Signed-off-by: Sajid Alam <sajid_alam@mckinsey.com>
1 parent 2523edf commit 8f02004

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

webview/src/App.jsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ function App() {
88
const [error, setError] = React.useState(false);
99
const [loading, setLoading] = React.useState(true);
1010

11+
const toolbarOptions = {
12+
labelBtn: true,
13+
layerBtn: true,
14+
expandPipelinesBtn: false,
15+
exportBtn: false,
16+
};
17+
1118
useEffect(() => {
1219
// Handle messages sent from the extension to the webview
1320
window.addEventListener("message", (event) => {
@@ -95,7 +102,8 @@ function App() {
95102
globalNavigation: false,
96103
metadataPanel: false,
97104
miniMap: false,
98-
sidebar: false,
105+
sidebar: true,
106+
...toolbarOptions,
99107
},
100108
behaviour: {
101109
reFocus: false,

0 commit comments

Comments
 (0)