Replace generic console.error handlers with window.cloudron.onError
This commit is contained in:
@@ -40,7 +40,7 @@ async function onToggleEditableUserProfiles(value) {
|
||||
|
||||
onMounted(async () => {
|
||||
const [error, result] = await userDirectoryModel.getGlobalProfileConfig();
|
||||
if (error) return console.error(error);
|
||||
if (error) return window.cloudron.onError(error);
|
||||
|
||||
editableUserProfiles.value = !result.lockUserProfiles;
|
||||
mandatory2FA.value = result.mandatory2FA;
|
||||
|
||||
Reference in New Issue
Block a user