Reworked log data format, overhauled snackbar

This commit is contained in:
Stefan Zermatten
2021-03-28 12:31:39 +02:00
parent ada1355c29
commit 3c26bb2fc6
27 changed files with 273 additions and 244 deletions

View File

@@ -21,14 +21,13 @@ export default function applyToggle({
if (result.constructor.name === 'ErrorNode') {
log.content.push({
name: 'Toggle error',
error: result.toString(),
value: result.toString(),
});
return false;
}
log.content.push({
name: prop.name || 'Toggle',
resultPrefix: prop.condition + ' = ',
result: result.toString(),
value: prop.condition + ' = ' + result.toString(),
});
return !!result.value;
}