Skip to content

Commit

Permalink
fix: better messages in CategoryBuilder when all done
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Nov 8, 2022
1 parent cbb555d commit 12effc6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/views/settings/CategoryBuilder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ div

hr

h5 Common words in "{{category.join(" > ")}}" events
div(v-if="loading")
| Loading...
div(v-else)
div(v-if="words.length == 0")
| No events found.
div(v-if="words_by_duration.length == 0")
| No words with significant duration. You're good to go!
div(v-else)
h5 Common words in "{{category.join(" > ")}}"
div.row(v-for="word in words_by_duration")
div.col(v-if="!ignored_words.includes(word.word)").hover-highlight
div.col.hover-highlight
div.d-flex.flex-row.py-2
div.flex-grow-1
| {{ word.word }} ({{ Math.round(word.duration) }}s)
Expand Down Expand Up @@ -155,7 +155,8 @@ export default {
words_by_duration: function () {
return Object.values(this.words)
.sort((a, b) => b.duration - a.duration)
.filter(word => word.duration > 60);
.filter(word => word.duration > 60)
.filter(word => !this.ignored_words.includes(word.word));
},
valid: function () {
return this.validPattern && this.validCategory;
Expand Down

1 comment on commit 12effc6

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here are screenshots of this commit:

Screenshots using aw-server v0.12.1 (click to expand)

Screenshots using aw-server-rust master (click to expand)

Screenshots using aw-server-rust v0.12.1 (click to expand)

Please sign in to comment.