Revert "Replace generic console.error handlers with window.cloudron.onError"
This reverts commit 7db5a48e35.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user