Closed NicoHood closed 6 years ago
Can you make it configurable with default off? Because I don't want to show something which might be incompatible with the backend as default
@schinken There is no need for that. I've tested the new frontend with an old backend. It will just show an empty field in the "Last 5 transactions" Table, as if nothing has changed. If you add a comment to a transaction it will simply be ignored. The complete transaction history also shows an empty column. Should be okay and compatible then. That comments do not work is expected and something I would not build a lot more if-else around.
I don't want to show something that doesn't work ;)
I've added a config option for the comments on custom transactions.
The comments field in the transaction overview is still enabled just because it will be blank if no comments exist, but if they do (because some other special backend wrote some etc) they will be visible. You not notice any difference unless you click "show all" (transactions) because the smaller 5 entry version has no headline anyways. You can decide i I should also disable those columns, up to you :)
Thanks for merging! Would you mind tagging a new release? Even if you merge the other PR as well it would be nice to have an intermediate step for debugging (if ever required) :)
Features:
Translations for other languages have to be updated of course.
This only works with a new version of the backend of course. See https://github.com/hackerspace-bootstrap/strichliste/pull/273