Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add slot for additional actions to the question component #1470

Merged
merged 1 commit into from Jan 31, 2023

Conversation

susnux
Copy link
Collaborator

@susnux susnux commented Jan 30, 2023

Added a slot for additional, question specific, settings and moved the shuffle option to only the required questions.
Did this to allow further custom question settings without adding more, mostly useless, properties to the question component. E.g. such a feature could be the validation of a short question.

I am not 100% sure about the position of the slot, I think delete the question should always be the last option, but not sure if all other common options should be above the slot or also below the slot.

Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
@susnux susnux added enhancement New feature or request javascript Javascript related ticket 3. to review Waiting for reviews labels Jan 30, 2023
@Chartman123
Copy link
Collaborator

@susnux on the other hand this means duplicated code if an extra setting is valid for multiple question types... I'm not sure what's better here.

@susnux
Copy link
Collaborator Author

susnux commented Jan 31, 2023

on the other hand this means duplicated code if an extra setting is valid for multiple question types... I'm not sure what's better here.

True. I moved the shuffle option to show how this could be used, but if you think we should keep it in question (shared for two question types) I am fine with it and revert that.
I just need the slot for options specific for one question type (short answer type).

@jotoeri
Copy link
Member

jotoeri commented Jan 31, 2023

As it is now, the shuffleOptions feels a bit more logically bound to the question-type it belongs to. So for me, both is fine here...

grafik 🤷‍♂️ 🙈

@Chartman123
Copy link
Collaborator

Ok, then let's move it to the question types :)

@susnux susnux merged commit ef8e8b0 into main Jan 31, 2023
@susnux susnux deleted the feat/questions-add-actions-slot branch January 31, 2023 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement New feature or request javascript Javascript related ticket
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants