This commit is contained in:
@@ -584,31 +584,11 @@ export default function AdminPage() {
|
||||
</div>
|
||||
)}
|
||||
<button
|
||||
onClick={() => {
|
||||
if (isDocker) {
|
||||
handleExportTarball();
|
||||
} else {
|
||||
// Custom popup for local server message
|
||||
const dockerSupportPopup = document.createElement('div');
|
||||
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%';
|
||||
dockerSupportPopup.style.transform = 'translate(-50%, -50%)';
|
||||
dockerSupportPopup.style.backgroundColor = 'white';
|
||||
dockerSupportPopup.style.padding = '20px';
|
||||
dockerSupportPopup.style.borderRadius = '5px';
|
||||
dockerSupportPopup.style.boxShadow = '0 4px 8px rgba(0, 0, 0, 0.2)';
|
||||
dockerSupportPopup.style.zIndex = '1000';
|
||||
document.body.appendChild(dockerSupportPopup);
|
||||
setTimeout(() => {
|
||||
document.body.removeChild(dockerSupportPopup);
|
||||
}, 3000);
|
||||
}
|
||||
}}
|
||||
onClick={handleExportTarball}
|
||||
className="px-4 py-2 bg-green-600 text-white rounded hover:bg-green-700"
|
||||
title="Export Docker Posts"
|
||||
>
|
||||
Export Docker Posts
|
||||
Export Posts
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user