code-paster icon indicating copy to clipboard operation
code-paster copied to clipboard

Allow possibility of sending empty text when using editable textarea in trainer page

Open mavv-coder opened this issue 5 years ago • 4 comments
trafficstars

Right now, trainer can edit old text and send new text using the editable textarea in the bottom. However, sending the editable textarea content empty is not possible. What if we want to start again removing all text? We want to implemente this possibility with a dialog confirm element to warn the user that all text is going to be removed if he clicks "yes". Of course, the confirm element should not be displayed any time we edit the text, but only when we try to send all the content empty.

mavv-coder avatar Nov 18 '20 10:11 mavv-coder

From my point of view a "Reset" or "Clean" button would be more convenient to perform that feature.

MiguelAngelRL avatar Nov 18 '20 15:11 MiguelAngelRL

Good point, @MiguelAngelRL. I like that. However, your option would still need a confirmation from the user, right? Or do you have another idea to avoid the necessity of implementing a dialog element?

mavv-coder avatar Nov 18 '20 16:11 mavv-coder

Absolutely @mavv-coder, a Dialog/Alert component is necessary in any case.

MiguelAngelRL avatar Nov 18 '20 17:11 MiguelAngelRL

Great. Let's wait and see what @brauliodiez thinks about this. I see eye to eye with you on the button solution.

mavv-coder avatar Nov 18 '20 19:11 mavv-coder