diff --git a/client/components/readers/Reader.vue b/client/components/readers/Reader.vue
index 2a7b90cf..5ee85182 100644
--- a/client/components/readers/Reader.vue
+++ b/client/components/readers/Reader.vue
@@ -27,7 +27,7 @@
-
+
@@ -47,16 +47,16 @@
-
- {{ chapter.title }}
+ {{ chapter.title }}
@@ -181,11 +181,11 @@ export default {
font: [
{
text: 'Sans',
- value: 'sans-serif',
+ value: 'sans-serif'
},
{
text: 'Serif',
- value: 'serif',
+ value: 'serif'
}
]
}
@@ -272,6 +272,10 @@ export default {
}
},
methods: {
+ goToChapter(uri) {
+ this.toggleToC()
+ this.$refs.readerComponent.goToChapter(uri)
+ },
readerMounted() {
if (this.isEpub) {
this.loadEreaderSettings()
diff --git a/client/components/ui/TextInput.vue b/client/components/ui/TextInput.vue
index 56825491..5f871635 100644
--- a/client/components/ui/TextInput.vue
+++ b/client/components/ui/TextInput.vue
@@ -68,7 +68,7 @@ export default {
methods: {
clear() {
this.inputValue = ''
- this.$emit('submit')
+ this.$emit('clear')
},
focused() {
this.isFocused = true