mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	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> |