First draft of an element which deletes points

This commit is contained in:
Pieter Vander Vennet 2021-07-01 02:26:45 +02:00
parent bbfcee686f
commit 5d3365afb8
13 changed files with 407 additions and 169 deletions

View file

@ -27,17 +27,20 @@ export default class QuestionBox extends VariableUiElement {
}
const tagRenderingQuestions = tagRenderings
.map((tagRendering, i) => new TagRenderingQuestion(tagsSource, tagRendering, units,
() => {
// We save
skippedQuestions.ping();
},
Translations.t.general.skip.Clone()
.SetClass("btn btn-secondary mr-3")
.onClick(() => {
skippedQuestions.data.push(i);
.map((tagRendering, i) => new TagRenderingQuestion(tagsSource, tagRendering,
{
units: units,
afterSave: () => {
// We save
skippedQuestions.ping();
})
},
cancelButton: Translations.t.general.skip.Clone()
.SetClass("btn btn-secondary mr-3")
.onClick(() => {
skippedQuestions.data.push(i);
skippedQuestions.ping();
})
}
));
const skippedQuestionsButton = Translations.t.general.skippedQuestions.Clone()