lappis-unb / BotFlow

BotFlow - visual content manager for simple Rasa chatbots
GNU General Public License v3.0
30 stars 12 forks source link

Disable delete button when utter has a single balloon #150

Open rodmaia opened 3 years ago

rodmaia commented 3 years ago

When an utter has a single text balloon, the delete button of that balloon should be disabled as you cannot leave an utter with zero balloons. The delete button should be reenabled once you add more balloons.

Tasks

Acceptance criteria

Miguel-Alves commented 3 years ago

Reviewing this issue based on #153;

Miguel-Alves commented 3 years ago

This issue is very similar to #151 . And, as it happened to it's "sister", happens here either. This work is kind of redundant as already exists a validation that does not allow the user to delete the last content. But, following the procedures of #153 , this issue is maintained;

Miguel-Alves commented 3 years ago

Solved this issue adding another validation to the button when editing utters, as described in #163 ; Then, this issue was moved to "Awaiting Review"

rodmaia commented 3 years ago

This work is kind of redundant as already exists a validation that does not allow the user to delete the last content.

See https://github.com/lappis-unb/BotFlow/issues/151#issuecomment-788993997

Miguel-Alves commented 3 years ago

Checked it and now I understand these needs and procedures. Anyway, I added the validation that solves this issue and a PR solving it is open

rodmaia commented 3 years ago

I tested it! Looks good on my end.