Mirobit / Labelit

:book: Anonymize and annotate text
MIT License
7 stars 2 forks source link

Add warning for missing keyboard shortcut #3

Closed mrweiler closed 4 years ago

mrweiler commented 4 years ago

When adding a new category for anonymization without specifying a keyboard shortcut the following warning is presented: "Unexpected server error. Couldn't finish action." Please add a more specific warning message or make the keyboard shortcut field mandatory.

mrweiler commented 4 years ago

This also applies to missing "Name of category" and "Choose category color" fields.

mrweiler commented 4 years ago

Also, when using the same keyboard shortcut for two categories the following warning message is shown: "Duplicate category". This should be "Duplicate keyboard shortcut".

mrweiler commented 4 years ago

This also applies when using the same color for two different categories.

Mirobit commented 4 years ago

That is true. The error messages could be more specific. I will add some more.

Mirobit commented 4 years ago

3dc46c613a28d3e93309fbc43b3aefd9395ff1f9 adds more specific error messages and removes the requirement that the color is unique.