BuildmLearn / BuildmLearn-Toolkit-Android

This repository contains the Android version of the BuildmLearn Toolkit. BuildmLearn Toolkit is an easy-to-use program that helps the users make mobile apps without any knowledge of application development.
BSD 3-Clause "New" or "Revised" License
57 stars 132 forks source link

Issue in ComprehensionTemplate and MatchTemplate. #329

Closed m-murad closed 2 years ago

m-murad commented 7 years ago

If the user deletes meta data in Comprehension or Match template the options are still there.

I suggest that if the user delets meta data the options for that meta data are also deleted. Because if the user wants to edit the meta he can do so by using button in toolbar, but deleting probably means that he wants to delete the whole question.

m-murad commented 7 years ago

@opticod I am making a PR for this.

opticod commented 7 years ago

No, its not a problem. If user deletes meta data, then the options can exists. Though the project cannot be saved without meta details, and will be asked for it.

m-murad commented 7 years ago

@opticod What I am trying to say is that if the user wants to edit the meta data he/she has the option to do that. But deleting metadata probably means that user wants to delete the complete question. Currently - If the user want to delete the complete question he has to first delete the metadata and then all the options individually. If this is implemented then it becomes easier for user to delete the data.

m-murad commented 7 years ago

@opticod just let me know if you find its ok to implement this functionality.

opticod commented 7 years ago

Ok, it got it now. Then, while deleting the meta data, we can ask the user in dialog box, if he also wants to delete the questions.

m-murad commented 7 years ago

@opticod I don't think adding a dialog box to delete metadata is a good option. There are following cases that can arise

  1. User wants to edit metadata. (He can do it using edit buttons provided.)
  2. User wants to delete the question. (He has to delete all options and then metadata.)

Letting the user just delete the metadata is illogical. He can edit it. Deleting metadata means he wants to delete complete question.

Anyway, If you still think we should add the dialog box, I will do that.

opticod commented 7 years ago

@free4murad, if we don't keep the dialog box, then accidentally an user can loose his/ her all questions, It will be good to confirm from the user before deleting all the questions at a go.