cloud fixes

This commit is contained in:
SPRINX0\prochazka
2025-05-26 17:24:13 +02:00
parent d26db7096d
commit f94bf3f8ce
3 changed files with 13 additions and 7 deletions

View File

@@ -189,12 +189,14 @@
getCurrentConnection()?._id?.startsWith('cloud://')
) {
let connection = getCurrentConnection();
await apiCall('cloud/save-connection', { connection });
showSnackbarSuccess('Connection saved');
changeTab(tabid, tab => ({
...tab,
title: getConnectionLabel(connection),
}));
const resp = await apiCall('cloud/save-connection', { connection });
if (resp?._id) {
showSnackbarSuccess('Connection saved');
changeTab(tabid, tab => ({
...tab,
title: getConnectionLabel(connection),
}));
}
} else {
let connection = getCurrentConnection();
connection = {