exporting for docker works now!
Some checks failed
Deploy / build-and-deploy (push) Failing after 1s

This commit is contained in:
2025-06-21 14:15:51 +02:00
parent e17b15ab28
commit 1054820ce7
2 changed files with 22 additions and 49 deletions

View File

@@ -586,9 +586,11 @@ export default function AdminPage() {
<button
onClick={() => {
if (isDocker) {
// Custom popup for Docker support message
handleExportTarball();
} else {
// Custom popup for local server message
const dockerSupportPopup = document.createElement('div');
dockerSupportPopup.innerHTML = 'Exporting from Docker is not supported yet.';
dockerSupportPopup.innerHTML = ' Exporting from local server isn\'t supported, please pull from the server\'s Filesystem';
dockerSupportPopup.style.position = 'fixed';
dockerSupportPopup.style.top = '50%';
dockerSupportPopup.style.left = '50%';
@@ -602,13 +604,11 @@ export default function AdminPage() {
setTimeout(() => {
document.body.removeChild(dockerSupportPopup);
}, 3000);
} else {
handleExportTarball();
}
}}
className="px-4 py-2 bg-green-600 text-white rounded hover:bg-green-700"
>
Export Posts
Export Docker Posts
</button>
</div>
</div>