Revert "Replace generic console.error handlers with window.cloudron.onError"

This reverts commit 7db5a48e35.
This commit is contained in:
Johannes Zellner
2025-12-10 18:04:07 +01:00
parent 4dd1a960c1
commit 1cd069df5e
90 changed files with 298 additions and 297 deletions
+3 -3
View File
@@ -65,7 +65,7 @@ const archives = ref([]);
async function refreshArchives() {
const [error, result] = await archivesModel.list();
if (error) return window.cloudron.onError(error);
if (error) return console.error(error);
// ensure we use the full api oprigin
result.forEach(a => {
@@ -89,7 +89,7 @@ async function onRemove(archive) {
if (!yes) return;
const [error] = await archivesModel.remove(archive.id);
if (error) return window.cloudron.onError(error);
if (error) return console.error(error);
await refreshArchives();
}
@@ -102,7 +102,7 @@ async function onRestore(archive) {
async function onDownloadConfig(archive) {
const [backupConfigError, backupConfig] = await backupSitesModel.generateBackupConfig(archive);
if (backupConfigError) return window.cloudron.onError(backupConfigError);
if (backupConfigError) return console.error(backupConfigError);
const filename = `${archive.appConfig.fqdn}-archive-config-${(new Date(archive.creationTime)).toISOString().split('T')[0]}.json`;
download(filename, JSON.stringify(backupConfig, null, 4));