Skip to content
This repository was archived by the owner on Aug 8, 2022. It is now read-only.

fix: native searbox work when disabled algolia #82

Merged
merged 1 commit into from
Sep 20, 2020
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
4 changes: 2 additions & 2 deletions src/.vuepress/theme/components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<SearchBox
v-if="
isAlgoliaSearch === false &&
!(
(
$site.themeConfig.search !== false &&
$page.frontmatter.search !== false
)
Expand Down Expand Up @@ -68,7 +68,7 @@ export default {
},

isAlgoliaSearch() {
return this.algolia && this.algolia.apiKey && this.algolia.indexName
return !!(this.algolia && this.algolia.apiKey && this.algolia.indexName)
}
},

Expand Down