Atualização automática: 2026-05-18 17:10:08
This commit is contained in:
@@ -610,14 +610,18 @@ function openClonedSite(directory) {
|
||||
}
|
||||
|
||||
function openCloneFolder(directory) {
|
||||
showToast('Abrindo pasta no sistema da VPS: ' + directory, 'info');
|
||||
showToast('Abrindo gerenciador de arquivos web...', 'info');
|
||||
fetch('/api/open-folder', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ path: directory })
|
||||
}).then(res => res.json())
|
||||
.then(data => {
|
||||
if (!data.success) showToast('Erro ao abrir pasta: ' + (data.error || ''), 'error');
|
||||
if (!data.success) {
|
||||
showToast('Erro ao abrir pasta: ' + (data.error || ''), 'error');
|
||||
} else if (data.url) {
|
||||
window.open(data.url, '_blank');
|
||||
}
|
||||
})
|
||||
.catch(err => console.error('Erro ao chamar open-folder:', err));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user