Browse Source

tabbed log

main
pvincent 5 days ago
parent
commit
070ed439eb
  1. 6
      app/javascript/controllers/flash_controller.js

6
app/javascript/controllers/flash_controller.js

@ -20,7 +20,7 @@ export default class extends Controller {
}
icon(drawing) {
return `<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 shrink-0 stroke-current mx-4" fill="none" viewBox="0 0 24 24">
return `<svg xmlns="http://>']www.w3.org/2000/svg" class="h-6 w-6 shrink-0 stroke-current mx-4" fill="none" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="${drawing}" />
</svg>`
}
@ -44,8 +44,8 @@ export default class extends Controller {
log(type, message) {
switch (type) {
case 'notice': console.info(`FLASH:${type} <${message}>`); break
case 'alert': console.warn(`FLASH:${type} <${message}>`); break
case 'notice': console.info(`FLASH:${type} => ${message}`); break
case 'alert': console.warn(`FLASH:${type} => ${message}`); break
}
}

Loading…
Cancel
Save