Merge pull request #1756 from janhq/regression/add-back-open-app-data-folder

fix: bring back open app directory
This commit is contained in:
Louis 2024-01-25 11:43:18 +07:00 committed by GitHub
commit 44053a6f26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -182,6 +182,30 @@ const Advanced = () => {
/>
</div>
{/* Open app directory */}
{window.electronAPI && (
<div className="flex w-full items-start justify-between border-b border-border py-4 first:pt-0 last:border-none">
<div className="w-4/5 flex-shrink-0 space-y-1.5">
<div className="flex gap-x-2">
<h6 className="text-sm font-semibold capitalize">
Open App Directory
</h6>
</div>
<p className="whitespace-pre-wrap leading-relaxed">
Open the directory where your app data, like conversation history
and model configurations, is located.
</p>
</div>
<Button
size="sm"
themes="secondaryBlue"
onClick={() => window.core?.api?.openAppDirectory()}
>
Open
</Button>
</div>
)}
{/* Claer log */}
<div className="flex w-full items-start justify-between border-b border-border py-4 first:pt-0 last:border-none">
<div className="flex-shrink-0 space-y-1.5">