Fix experimental e-reader with new data model

This commit is contained in:
advplyr 2022-04-13 08:26:43 -05:00
parent 88354de495
commit a90cfc4d04
7 changed files with 61 additions and 71 deletions

View file

@ -30,7 +30,6 @@
</td>
<td class="text-xs">
<div class="flex items-center">
<span v-if="file.filetype === 'ebook'" class="material-icons text-base mr-1 cursor-pointer text-white text-opacity-60 hover:text-opacity-100" @click="readEbookClick(file)">auto_stories </span>
<p>{{ file.fileType }}</p>
</div>
</td>
@ -53,7 +52,8 @@ export default {
default: () => []
},
libraryItemId: String,
isMissing: Boolean
isMissing: Boolean,
expanded: Boolean // start expanded
},
data() {
return {
@ -70,13 +70,12 @@ export default {
}
},
methods: {
readEbookClick(file) {
// this.$store.commit('showEReaderForFile', { audiobook: this.audiobook, file })
},
clickBar() {
this.showFiles = !this.showFiles
}
},
mounted() {}
mounted() {
this.showFiles = this.expanded
}
}
</script>