Refactor file mover to ensure faster transfers and more reliable handling (#1406)
This commit is contained in:
+4
-4
@@ -100,10 +100,10 @@ export class BookDialogHelperService {
|
||||
closeOnEscape: false,
|
||||
dismissableMask: false,
|
||||
style: {
|
||||
width: '85vw',
|
||||
height: '80vh',
|
||||
maxHeight: '95vh',
|
||||
maxWidth: '97.5vw'
|
||||
width: '95vw',
|
||||
maxWidth: '97.5vw',
|
||||
height: '90vh',
|
||||
maxHeight: '95vh'
|
||||
},
|
||||
data: {
|
||||
bookIds: selectedBooks
|
||||
|
||||
+1
-1
@@ -515,7 +515,7 @@
|
||||
</div>
|
||||
|
||||
<div class="px-4 pb-2 pt-4 mb-4 md:mb-6 md:mx-2 border border-[var(--border-color)] rounded-xl">
|
||||
<div [ngClass]="{ 'line-clamp-5': !isExpanded, 'line-clamp-none': isExpanded }" class="transition-all duration-300 overflow-hidden description-container">
|
||||
<div [ngClass]="{ 'line-clamp-7': !isExpanded, 'line-clamp-none': isExpanded }" class="transition-all duration-300 overflow-hidden description-container">
|
||||
<div class="readonly-editor px-2">
|
||||
<p-editor #quillEditor [readonly]="true" [style]="{height: '200px'}" [(ngModel)]="book.metadata!.description">
|
||||
<ng-template #header>
|
||||
|
||||
+2
-19
@@ -17,32 +17,15 @@
|
||||
<div class="setting-item">
|
||||
<div class="setting-info">
|
||||
<div class="setting-label-row">
|
||||
<label class="setting-label">Write to File</label>
|
||||
<label class="setting-label">Write Metadata to File</label>
|
||||
<p-toggleswitch
|
||||
[ngModel]="metadataPersistence.saveToOriginalFile"
|
||||
(onChange)="onPersistenceToggle('saveToOriginalFile')">
|
||||
</p-toggleswitch>
|
||||
</div>
|
||||
<p class="setting-description">
|
||||
<i class="pi pi-exclamation-triangle"></i>
|
||||
Writes metadata directly into the original file. A backup of the metadata and/or cover is created only if enabled below. Proceed with caution, restoration may fail if the file is moved or renamed.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="setting-item setting-item-indented">
|
||||
<div class="setting-info">
|
||||
<div class="setting-label-row">
|
||||
<label class="setting-label">Convert CBR/CB7 to CBZ</label>
|
||||
<p-toggleswitch
|
||||
[ngModel]="metadataPersistence.convertCbrCb7ToCbz"
|
||||
(onChange)="onPersistenceToggle('convertCbrCb7ToCbz')"
|
||||
[disabled]="!metadataPersistence.saveToOriginalFile">
|
||||
</p-toggleswitch>
|
||||
</div>
|
||||
<p class="setting-description">
|
||||
<i class="pi pi-info-circle"></i>
|
||||
Converts CBR and CB7 files to CBZ format when updating metadata. If disabled, edits to CBR/CB7 files will not be written to the original file.
|
||||
Write metadata directly into the original file. (Only Epub and PDF formats are currently supported.)
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user