Revert "Replace generic console.error handlers with window.cloudron.onError"
This reverts commit 7db5a48e35.
This commit is contained in:
@@ -22,7 +22,7 @@ async function onSubmit() {
|
||||
busy.value = true;
|
||||
|
||||
const [error] = await mailModel.setCatchallAddresses(props.domainConfig.domain, addresses.value);
|
||||
if (error) return window.cloudron.onError(error);
|
||||
if (error) return console.error(error);
|
||||
|
||||
currentAddresses.value = addresses.value.slice();
|
||||
busy.value = false;
|
||||
@@ -43,13 +43,13 @@ const hasChanged = computed(() => {
|
||||
|
||||
onMounted(async () => {
|
||||
const [error, result] = await domainsModel.list();
|
||||
if (error) return window.cloudron.onError(error);
|
||||
if (error) return console.error(error);
|
||||
|
||||
// only for inbound enabled but then we have extra rest calls
|
||||
|
||||
for (const domain of result) {
|
||||
const [error, result] = await mailboxesModel.list(domain.domain);
|
||||
if (error) return window.cloudron.onError(error);
|
||||
if (error) return console.error(error);
|
||||
|
||||
allAddresses.value = allAddresses.value.concat(result.map(mailbox => {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user