mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-03 00:06:46 +01:00
Convert Library settings page to use new component
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
This commit is contained in:
parent
e3ec5dd506
commit
d5a19f2b42
@ -1,11 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="librariesTable" class="bg-bg rounded-md shadow-lg border border-white border-opacity-5 p-4 mb-8">
|
<div id="librariesTable">
|
||||||
<div class="flex items-center mb-2">
|
|
||||||
<h1 class="text-xl">{{ $strings.HeaderLibraries }}</h1>
|
|
||||||
<div class="mx-2 w-7 h-7 flex items-center justify-center rounded-full cursor-pointer hover:bg-white hover:bg-opacity-10 text-center" @click="clickAddLibrary">
|
|
||||||
<span class="material-icons" style="font-size: 1.4rem">add</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<draggable v-if="libraryCopies.length" :list="libraryCopies" v-bind="dragOptions" class="list-group" handle=".drag-handle" draggable=".item" tag="div" @start="startDrag" @end="endDrag">
|
<draggable v-if="libraryCopies.length" :list="libraryCopies" v-bind="dragOptions" class="list-group" handle=".drag-handle" draggable=".item" tag="div" @start="startDrag" @end="endDrag">
|
||||||
<template v-for="library in libraryCopies">
|
<template v-for="library in libraryCopies">
|
||||||
<div :key="library.id" class="item">
|
<div :key="library.id" class="item">
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
|
<app-settings-content :headerText="$strings.HeaderLibraries" showAddButton=true @clicked="setShowLibraryModal">
|
||||||
<tables-library-libraries-table @showLibraryModal="setShowLibraryModal" />
|
<tables-library-libraries-table @showLibraryModal="setShowLibraryModal" />
|
||||||
|
</app-settings-content>
|
||||||
<modals-libraries-edit-modal v-model="showLibraryModal" :library="selectedLibrary" />
|
<modals-libraries-edit-modal v-model="showLibraryModal" :library="selectedLibrary" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
Reference in New Issue
Block a user