Skip to content

Commit b594850

Browse files
committed
feat: added search to header menu, as well as an 'early feature' notice
1 parent b3ac5a6 commit b594850

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

src/components/Header.vue

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,18 @@ div.aw-navbar
4848
span.ml-2.align-middle(style="font-size: 1.0em; color: #000;") ActivityWatch
4949

5050
b-navbar-nav.ml-auto
51-
b-nav-item(to="/query", active-class="aw-active")
52-
div.px-2.px-lg-1
51+
b-nav-item-dropdown
52+
template(slot="button-content")
53+
div.d-inline.px-2.px-lg-1
54+
icon(name="tools")
55+
| Tools
56+
b-dropdown-item(to="/search")
5357
icon(name="search")
58+
| Search
59+
b-dropdown-item(to="/query")
60+
icon(name="code")
5461
| Query
62+
5563
b-nav-item(to="/buckets")
5664
div.px-2.px-lg-1
5765
icon(name="database")
@@ -69,8 +77,10 @@ import 'vue-awesome/icons/calendar-week';
6977
import 'vue-awesome/icons/stream';
7078
import 'vue-awesome/icons/database';
7179
import 'vue-awesome/icons/search';
80+
import 'vue-awesome/icons/code';
7281
import 'vue-awesome/icons/stopwatch';
7382
import 'vue-awesome/icons/cog';
83+
import 'vue-awesome/icons/tools';
7484
7585
import 'vue-awesome/icons/mobile';
7686
import 'vue-awesome/icons/desktop';
@@ -129,11 +139,6 @@ export default {
129139
border-width: 0 0 1px 0;
130140
}
131141
132-
.active {
133-
background-color: #ddd;
134-
border-radius: 0.5em;
135-
}
136-
137142
.nav-item {
138143
align-items: center;
139144

src/views/Search.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<template lang="pug">
2-
32
div
43
h3 Search
54

6-
div.alert.alert-danger(v-if="error")
5+
b-alert(style="warning" show)
6+
| This feature is still in early development.
7+
8+
b-alert(v-if="error" show variant="danger")
79
| {{error}}
810

911
b-input-group(size="lg")

0 commit comments

Comments
 (0)