mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
d5a19f2b42
This commit moves the library settings page over to use the new component. This page is 1 of 2 that actually has a component for itself, so it was mostly just modifying that existing component and wrapping it
27 lines
665 B
Vue
27 lines
665 B
Vue
<template>
|
|
<div>
|
|
<app-settings-content :headerText="$strings.HeaderLibraries" showAddButton=true @clicked="setShowLibraryModal">
|
|
<tables-library-libraries-table @showLibraryModal="setShowLibraryModal" />
|
|
</app-settings-content>
|
|
<modals-libraries-edit-modal v-model="showLibraryModal" :library="selectedLibrary" />
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
showLibraryModal: false,
|
|
selectedLibrary: null
|
|
}
|
|
},
|
|
computed: {},
|
|
methods: {
|
|
setShowLibraryModal(selectedLibrary) {
|
|
this.selectedLibrary = selectedLibrary
|
|
this.showLibraryModal = true
|
|
}
|
|
},
|
|
mounted() {}
|
|
}
|
|
</script> |