Carify max upload size note to indicate restart is required
This commit is contained in:
committed by
Aditya Chandel
parent
86dfc515a7
commit
9b589748ac
@@ -88,48 +88,50 @@
|
|||||||
<p-divider></p-divider>
|
<p-divider></p-divider>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-row gap-11 p-4">
|
<div class="grid grid-cols-[auto,1fr] pl-6 gap-y-4 gap-x-4 items-center">
|
||||||
<div>
|
<p class="text-lg pb-4 ">Max File Upload Size:
|
||||||
<p class="text-lg pb-4 ">Max File Upload Size:
|
<i class="pi pi-info-circle text-sky-600"
|
||||||
<i class="pi pi-info-circle text-sky-600"
|
pTooltip="Defines the maximum allowed size (in MB) for each uploaded file. Applies to EPUB, PDF, CBZ, CBR, and CB7 formats."
|
||||||
pTooltip="Defines the maximum allowed size (in MB) for each uploaded file. Applies to EPUB, PDF, CBZ, CBR, and CB7 formats."
|
tooltipPosition="right"
|
||||||
tooltipPosition="right"
|
style="cursor: pointer;">
|
||||||
style="cursor: pointer;">
|
</i>
|
||||||
</i>
|
</p>
|
||||||
</p>
|
<div class="flex gap-4 items-center">
|
||||||
<div class="flex gap-4 items-center">
|
<div class="relative w-28">
|
||||||
<div class="relative w-28">
|
<input
|
||||||
<input
|
type="text"
|
||||||
type="text"
|
pInputText
|
||||||
pInputText
|
[(ngModel)]="maxFileUploadSizeInMb"
|
||||||
[(ngModel)]="maxFileUploadSizeInMb"
|
class="pr-10 w-full"
|
||||||
class="pr-10 w-full"
|
placeholder="Max size"/>
|
||||||
placeholder="Max size"/>
|
<span class="absolute right-2 top-1/2 -translate-y-1/2 text-gray-500 text-sm pointer-events-none">MB</span>
|
||||||
<span class="absolute right-2 top-1/2 -translate-y-1/2 text-gray-500 text-sm pointer-events-none">MB</span>
|
</div>
|
||||||
</div>
|
<p-button label="Save" outlined (onClick)="saveFileSize()"></p-button>
|
||||||
<p-button label="Save" outlined (onClick)="saveFileSize()"></p-button>
|
<div class="text-sm text-gray-400 flex items-start gap-2">
|
||||||
|
<i class="pi pi-exclamation-triangle text-yellow-500 mt-0.5"></i>
|
||||||
|
<span>
|
||||||
|
Changes will take effect after restarting the server
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<p class="text-lg pb-4 ">CBX Cache Size:
|
||||||
<p class="text-lg pb-4 ">CBX Cache Size:
|
<i class="pi pi-info-circle text-sky-600"
|
||||||
<i class="pi pi-info-circle text-sky-600"
|
pTooltip="Limits the total size (in MB) of the CBX image cache. If exceeded, older cache entries are removed automatically."
|
||||||
pTooltip="Limits the total size (in MB) of the CBX image cache. If exceeded, older cache entries are removed automatically."
|
tooltipPosition="right"
|
||||||
tooltipPosition="right"
|
style="cursor: pointer;">
|
||||||
style="cursor: pointer;">
|
</i>
|
||||||
</i>
|
</p>
|
||||||
</p>
|
<div class="flex gap-4 items-center">
|
||||||
<div class="flex gap-4 items-center">
|
<div class="relative w-28">
|
||||||
<div class="relative w-28">
|
<input
|
||||||
<input
|
type="text"
|
||||||
type="text"
|
pInputText
|
||||||
pInputText
|
[(ngModel)]="cbxCacheValue"
|
||||||
[(ngModel)]="cbxCacheValue"
|
class="pr-10 w-full"
|
||||||
class="pr-10 w-full"
|
placeholder="Cache size"/>
|
||||||
placeholder="Cache size"/>
|
<span class="absolute right-2 top-1/2 -translate-y-1/2 text-gray-500 text-sm pointer-events-none">MB</span>
|
||||||
<span class="absolute right-2 top-1/2 -translate-y-1/2 text-gray-500 text-sm pointer-events-none">MB</span>
|
|
||||||
</div>
|
|
||||||
<p-button label="Save" outlined (onClick)="saveCacheSize()"></p-button>
|
|
||||||
</div>
|
</div>
|
||||||
|
<p-button label="Save" outlined (onClick)="saveCacheSize()"></p-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -12,11 +12,11 @@
|
|||||||
(onChange)="onPersistenceToggle('saveToOriginalFile')">
|
(onChange)="onPersistenceToggle('saveToOriginalFile')">
|
||||||
</p-toggleswitch>
|
</p-toggleswitch>
|
||||||
<div class="text-sm text-gray-400 flex items-start gap-2">
|
<div class="text-sm text-gray-400 flex items-start gap-2">
|
||||||
<i class="pi pi-exclamation-triangle text-yellow-500 mt-0.5"></i>
|
<i class="pi pi-exclamation-triangle text-yellow-500 mt-0.5"></i>
|
||||||
<span>
|
<span>
|
||||||
Writes metadata directly into the original file. A backup of the metadata and/or cover is created <b>only if enabled below</b>. Proceed with caution, restoration may fail if the file is moved or renamed.
|
Writes metadata directly into the original file. A backup of the metadata and/or cover is created <b>only if enabled below</b>. Proceed with caution, restoration may fail if the file is moved or renamed.
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex items-center gap-4">
|
<div class="flex items-center gap-4">
|
||||||
|
|||||||
Reference in New Issue
Block a user