Skip to content
Snippets Groups Projects
Unverified Commit fef9ee69 authored by Alexander Lesnenko's avatar Alexander Lesnenko Committed by GitHub
Browse files

hide new question menu item when there are no dbs (#19811)

parent 546ff304
No related branches found
No related tags found
No related merge requests found
......@@ -163,15 +163,19 @@ export default class Navbar extends Component {
</Link>
}
items={[
{
title: t`Question`,
icon: `insight`,
link: Urls.newQuestion({
mode: "notebook",
creationType: "complex_question",
}),
event: `NavBar;New Question Click;`,
},
...(hasDataAccess
? [
{
title: t`Question`,
icon: `insight`,
link: Urls.newQuestion({
mode: "notebook",
creationType: "complex_question",
}),
event: `NavBar;New Question Click;`,
},
]
: []),
...(hasNativeWrite
? [
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment