Skip to content

Commit

Permalink
feat(webui): add menu option to analyze book from browsing view
Browse files Browse the repository at this point in the history
working towards #51
  • Loading branch information
gotson committed Jan 3, 2020
1 parent 8e81356 commit 64f542d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions komga-webui/src/components/BrowseBook.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,23 @@
>
<v-icon>mdi-arrow-left</v-icon>
</v-btn>

<v-spacer/>

<v-toolbar-items>
<v-menu offset-y>
<template v-slot:activator="{ on }">
<v-btn icon v-on="on">
<v-icon>mdi-dots-vertical</v-icon>
</v-btn>
</template>
<v-list>
<v-list-item @click="analyze()">
<v-list-item-title>Analyze</v-list-item-title>
</v-list-item>
</v-list>
</v-menu>
</v-toolbar-items>
</v-toolbar>

<v-container fluid class="pa-6">
Expand Down Expand Up @@ -134,6 +151,11 @@ export default Vue.extend({
return { 'top': '64px' }
}
}
},
methods: {
analyze () {
this.$komgaBooks.analyzeBook(this.book)
}
}
})
</script>
Expand Down

0 comments on commit 64f542d

Please sign in to comment.