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
@@ -55,7 +55,7 @@ async function onRemove(domain) {
const [error] = await domainsModel.remove(domain.domain);
if (error) {
if (error.status === 409) window.pankow.notify({ text: error.body.message || `Domain is still in use.`, type: 'danger', persistent: true });
if (error) return window.cloudron.onError(error);
return console.error(error);
}
await refreshDomains();
@@ -112,7 +112,7 @@ const filteredDomains = computed(() => {
async function refreshDomains() {
const [error, result] = await domainsModel.list();
if (error) return window.cloudron.onError(error);
if (error) return console.error(error);
domains.value = result;
@@ -124,7 +124,7 @@ onMounted(async () => {
await refreshDomains();
const [error, result] = await dashboardModel.config();
if (error) return window.cloudron.onError(error);
if (error) return console.error(error);
dashboardDomain.value = result.adminDomain;
busy.value = false;