OneGov / onegov.town

OneGov web application for small towns.
1 stars 2 forks source link

Improve File Upload Implementation #7

Open href opened 9 years ago

href commented 9 years ago
msom commented 9 years ago

Other thoughts:

href commented 9 years ago

I think alert boxes could benefit from a js api. I would recommend writing a react based component akin to the confirmation dialog. Something like this would then trigger an alert right away:

show_alert("My alert");
show_message("My alert", 'alert');

It's a bit of a rewrite of the server-side alerts but it's shouldn't be too much code. I think that's preferable to a full page reload.

As for localizing, a locale.js is missing anyway and its addition would make sense. Have a look at how seantis.reservation does locale.js for an example:

https://github.com/seantis/seantis.reservation/blob/master/seantis/reservation/js/locale.js

href commented 9 years ago

Even more improvements: