Revert "Replace generic console.error handlers with window.cloudron.onError"
This reverts commit 7db5a48e35.
This commit is contained in:
@@ -61,7 +61,7 @@ const identifier = ref('');
|
||||
const appsById = {};
|
||||
async function refresh() {
|
||||
const [error, result] = await appPasswordsModel.list();
|
||||
if (error) return window.cloudron.onError(error);
|
||||
if (error) return console.error(error);
|
||||
|
||||
// setup label for the table UI
|
||||
result.forEach(function (password) {
|
||||
@@ -98,7 +98,7 @@ async function onSubmit() {
|
||||
addedPassword.value = '';
|
||||
|
||||
const [error, result] = await appPasswordsModel.add(identifier.value, passwordName.value);
|
||||
if (error) return window.cloudron.onError(error);
|
||||
if (error) return console.error(error);
|
||||
|
||||
addedPassword.value = result.password;
|
||||
passwordName.value = '';
|
||||
@@ -120,7 +120,7 @@ async function onRemove(appPassword) {
|
||||
if (!yes) return;
|
||||
|
||||
const [error] = await appPasswordsModel.remove(appPassword.id);
|
||||
if (error) return window.cloudron.onError(error);
|
||||
if (error) return console.error(error);
|
||||
|
||||
await refresh();
|
||||
}
|
||||
@@ -130,7 +130,7 @@ onMounted(async () => {
|
||||
identifiers.value = [{ id: 'mail', label: 'Mail client' }];
|
||||
|
||||
const [error, apps] = await appsModel.list();
|
||||
if (error) return window.cloudron.onError(error);
|
||||
if (error) return console.error(error);
|
||||
|
||||
apps.forEach(function (app) {
|
||||
if (!app.manifest.addons) return;
|
||||
|
||||
Reference in New Issue
Block a user