Revert "Replace generic console.error handlers with window.cloudron.onError"
This reverts commit 7db5a48e35.
This commit is contained in:
@@ -24,7 +24,7 @@ const profile = inject('profile');
|
||||
|
||||
async function onAckChecklistItem(item, key) {
|
||||
const [error] = await appsModel.ackChecklistItem(props.app.id, key, true);
|
||||
if (error) return window.cloudron.onError(error);
|
||||
if (error) return console.error(error);
|
||||
|
||||
item.acknowledged = true;
|
||||
item.changedAt = Date.now();
|
||||
@@ -46,7 +46,7 @@ async function onSubmit() {
|
||||
const [error] = await appsModel.configure(props.app.id, 'notes', { notes: noteContent.value });
|
||||
if (error) {
|
||||
busy.value = false;
|
||||
if (error) return window.cloudron.onError(error);
|
||||
return console.error(error);
|
||||
}
|
||||
|
||||
// let main view know about this
|
||||
|
||||
Reference in New Issue
Block a user