Skip to content

Commit 76eca56

Browse files
committed
fix: fixed filter afk/audible checkboxes and sorted categories in category filter dropdown
1 parent f9fa6d2 commit 76eca56

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

‎src/views/activity/Activity.vue‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ div
6969

7070
div.row
7171
div.col-md-12
72-
b-form-group(label="Filter AFK" label-cols="11")
73-
b-form-checkbox(v-model="filterAFK")
72+
b-form-checkbox(v-model="filterAFK")
73+
| Filter AFK
7474
div.col-md-12
75-
b-form-group(label="Browser audible as active" label-cols="11")
76-
b-form-checkbox(v-model="includeAudible")
75+
b-form-checkbox(v-model="includeAudible")
76+
| Count audible browser tab as active
7777

7878
aw-devonly
7979
b-btn(id="load-demo", @click="load_demo")
@@ -171,9 +171,11 @@ export default {
171171
},
172172
categories: function () {
173173
const cats = this.$store.getters['categories/all_categories'];
174-
const entries = cats.map(c => {
175-
return { text: c.join(' > '), value: c };
176-
});
174+
const entries = cats
175+
.map(c => {
176+
return { text: c.join(' > '), value: c };
177+
})
178+
.sort((a, b) => a.text > b.text);
177179
return [
178180
{ text: 'All', value: null },
179181
{ text: 'Uncategorized', value: ['Uncategorized'] },

0 commit comments

Comments
 (0)