diff --git a/frontend/src/components/BaseLayout.vue b/frontend/src/components/BaseLayout.vue
index f8b01ab..b8345ef 100644
--- a/frontend/src/components/BaseLayout.vue
+++ b/frontend/src/components/BaseLayout.vue
@@ -6,14 +6,7 @@
-
+
@@ -30,32 +23,26 @@
+
+
\ No newline at end of file
diff --git a/frontend/src/components/Sidebar.vue b/frontend/src/components/Sidebar.vue
index 64d75c2..12e7489 100644
--- a/frontend/src/components/Sidebar.vue
+++ b/frontend/src/components/Sidebar.vue
@@ -26,9 +26,13 @@
diff --git a/frontend/src/components/UserDropdown.vue b/frontend/src/components/UserDropdown.vue
index 01c5031..bdc34e7 100644
--- a/frontend/src/components/UserDropdown.vue
+++ b/frontend/src/components/UserDropdown.vue
@@ -8,10 +8,10 @@
-
+
-
+ {{ username }}
@@ -32,12 +32,22 @@
diff --git a/frontend/src/router.js b/frontend/src/router.js
index 75ea992..30f95fe 100644
--- a/frontend/src/router.js
+++ b/frontend/src/router.js
@@ -7,6 +7,7 @@ import Profile from '@/views/Profile.vue';
import Settings from '@/views/Settings.vue';
import Inventory from '@/views/Inventory.vue';
import Friends from "@/views/Friends.vue";
+import Search from "@/views/Search.vue";
import InventoryNew from "@/views/InventoryNew.vue";
import InventoryEdit from "@/views/InventoryEdit.vue";
import InventoryDetail from "@/views/InventoryDetail.vue";
@@ -21,6 +22,7 @@ const routes = [
{path: '/inventory/:id/edit', component: InventoryEdit, meta: {requiresAuth: true}},
{path: '/inventory/new', component: InventoryNew, meta: {requiresAuth: true}},
{path: '/friends', component: Friends, meta: {requiresAuth: true}},
+ {path: '/search/:query', component: Search, meta: {requiresAuth: true}},
{path: '/login', component: Login, meta: {requiresAuth: false}},
{path: '/register', component: Register, meta: {requiresAuth: false}},
]
diff --git a/frontend/src/store.js b/frontend/src/store.js
index c8ea103..6bfdac9 100644
--- a/frontend/src/store.js
+++ b/frontend/src/store.js
@@ -84,7 +84,6 @@ export default createStore({
const j = await dispatch('apiLocalGet', {target: '/auth/keys/'})
const k = j.key
commit('setKey', k)
- await router.push({path: '/'});
return true;
} else {
return false;
diff --git a/frontend/src/views/InventoryDetail.vue b/frontend/src/views/InventoryDetail.vue
index d642594..8f2a931 100644
--- a/frontend/src/views/InventoryDetail.vue
+++ b/frontend/src/views/InventoryDetail.vue
@@ -1,7 +1,3 @@
-
-
diff --git a/frontend/src/views/InventoryEdit.vue b/frontend/src/views/InventoryEdit.vue
index f8232b7..fe93f6e 100644
--- a/frontend/src/views/InventoryEdit.vue
+++ b/frontend/src/views/InventoryEdit.vue
@@ -1,7 +1,3 @@
-
-
diff --git a/frontend/src/views/InventoryNew.vue b/frontend/src/views/InventoryNew.vue
index db529b7..13a3f92 100644
--- a/frontend/src/views/InventoryNew.vue
+++ b/frontend/src/views/InventoryNew.vue
@@ -1,7 +1,3 @@
-
-
diff --git a/frontend/src/views/Login.vue b/frontend/src/views/Login.vue
index 3686f6b..3a86400 100644
--- a/frontend/src/views/Login.vue
+++ b/frontend/src/views/Login.vue
@@ -66,6 +66,7 @@
+
+
\ No newline at end of file