no more search in navbar
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
scammo 2021-09-23 16:57:09 +02:00
parent 8098c54c06
commit b19a770d61

View File

@ -30,7 +30,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
:class="{ show: showMobileNav }"
id="navbarSupportedContent"
>
<ul class="navbar-nav mb-2 mb-lg-0">
<ul class="navbar-nav mb-2 mb-lg-0 me-auto">
<li class="nav-item">
<router-link
class="nav-link"
@ -56,21 +56,6 @@ SPDX-License-Identifier: AGPL-3.0-or-later
>
</li>
</ul>
<form class="flex-grow-1 d-flex ms-lg-3 me-lg-4 mb-3 mb-lg-0" @submit.prevent="searchRedirect()">
<input
class="form-control bg-white me-2"
v-model="searchText"
type="search"
placeholder="Profile durchsuchen"
aria-label="Search"
/>
<button
class="btn btn-primary"
type="submit"
>
<i class="bi bi-search"></i>
</button>
</form>
<ul class="navbar-nav">
<li class="nav-item">
<button class="btn btn-danger w-100" @click="logout()">
@ -95,7 +80,6 @@ export default {
mixins: [RequestMixin],
data() {
return {
searchText: '',
showMobileNav: false
}
},
@ -110,9 +94,6 @@ export default {
this.$store.dispatch('clear')
this.$router.push({ path: '/' });
},
searchRedirect() {
this.$router.push({ path: `/s/search?text`, query: { query: this.searchText } } );
},
}
}