chore: auto-commit from dashboard
This commit is contained in:
@@ -1989,7 +1989,15 @@
|
||||
showToast('Se execută commit...', 'info');
|
||||
try {
|
||||
const response = await fetch('/echo/api/eco/git-commit', { method: 'POST' });
|
||||
const result = await response.json();
|
||||
const text = await response.text();
|
||||
let result;
|
||||
try {
|
||||
result = JSON.parse(text);
|
||||
} catch {
|
||||
showToast('Proxy timeout — verific status în 3s...', 'info');
|
||||
setTimeout(refreshStatus, 3000);
|
||||
return;
|
||||
}
|
||||
if (result.success) {
|
||||
showToast('Commit reușit: ' + (result.files || 0) + ' fișiere', 'success');
|
||||
setTimeout(refreshStatus, 1000);
|
||||
@@ -3194,7 +3202,15 @@
|
||||
if (!confirm('Fac commit și push la toate modificările echo-core?')) return;
|
||||
try {
|
||||
const res = await fetch('/echo/api/eco/git-commit', { method: 'POST' });
|
||||
const result = await res.json();
|
||||
const text = await res.text();
|
||||
let result;
|
||||
try {
|
||||
result = JSON.parse(text);
|
||||
} catch {
|
||||
showToast('Proxy timeout — verific status în 3s...', 'info');
|
||||
setTimeout(loadGitStatus, 3000);
|
||||
return;
|
||||
}
|
||||
if (result.success) {
|
||||
showToast('Commit reușit: ' + (result.files || 0) + ' fișiere', 'success');
|
||||
setTimeout(loadGitStatus, 1000);
|
||||
|
||||
Reference in New Issue
Block a user