Compare commits

...

3 Commits

Author SHA1 Message Date
scammo
b19a770d61 no more search in navbar
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2021-09-23 16:57:09 +02:00
scammo
8098c54c06 Merge branch 'feature-search' of git.wtf-eg.de:kompetenzinventar/ki-frontend into feature-search 2021-09-22 00:09:27 +02:00
93cb302ca7
implement search layout #32 #33 #35
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
2021-09-21 23:58:42 +02:00

View File

@ -30,7 +30,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
:class="{ show: showMobileNav }" :class="{ show: showMobileNav }"
id="navbarSupportedContent" 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"> <li class="nav-item">
<router-link <router-link
class="nav-link" class="nav-link"
@ -56,21 +56,6 @@ SPDX-License-Identifier: AGPL-3.0-or-later
> >
</li> </li>
</ul> </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"> <ul class="navbar-nav">
<li class="nav-item"> <li class="nav-item">
<button class="btn btn-danger w-100" @click="logout()"> <button class="btn btn-danger w-100" @click="logout()">
@ -95,7 +80,6 @@ export default {
mixins: [RequestMixin], mixins: [RequestMixin],
data() { data() {
return { return {
searchText: '',
showMobileNav: false showMobileNav: false
} }
}, },
@ -110,9 +94,6 @@ export default {
this.$store.dispatch('clear') this.$store.dispatch('clear')
this.$router.push({ path: '/' }); this.$router.push({ path: '/' });
}, },
searchRedirect() {
this.$router.push({ path: `/s/search?text`, query: { query: this.searchText } } );
},
} }
} }