cutelyst / pastelyst

A Web Paste Tool built with Cutelyst and KDE Frameworks
https://paste.cutelyst.org
GNU General Public License v2.0
19 stars 1 forks source link

add new buttons and make them optional #10

Closed maidis closed 5 years ago

maidis commented 5 years ago

This changes add two new buttons for pastes:

and make all new buttons optional because they don't have any vital functionality.

I don't know if it's okay to write such a long JavaScript code in a single line. Perhaps one of the following would be better:

I'm also not sure if this is the best way to make something optional. Please let me know if there is a better way. Maybe a new header file can be added for this type variables or maybe a simple admin page can be made.

maidis commented 5 years ago

I made some changes based on your comments. Would you review again?

dantti commented 5 years ago

you need to include Cutelyst::Application in cpp file

maidis commented 5 years ago

Thanks for help. Could you check the code again?