exporting for docker works now!
Some checks failed
Deploy / build-and-deploy (push) Failing after 1s
Some checks failed
Deploy / build-and-deploy (push) Failing after 1s
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user