Commit d02b10bd authored by Andreas Gärtner's avatar Andreas Gärtner
Browse files

Actionbuttons will be hidden if timed round is started. Task #15584

parent 20527c35
......@@ -850,6 +850,10 @@ Ext.define('ARSnova.view.speaker.QuestionDetailsPanel', {
},
onPainted: function () {
this.updateActionButtons();
},
updateActionButtons: function() {
var active = this.questionObj.active,
showAnswer = this.questionObj.showAnswer ? 1 : 0,
showStatistic = this.questionObj.showStatistic ? 1 : 0;
......@@ -857,6 +861,14 @@ Ext.define('ARSnova.view.speaker.QuestionDetailsPanel', {
this.questionStatusButton.button.setToggleFieldValue(active);
this.showCorrectAnswerButton.setToggleFieldValue(showAnswer);
this.releaseStatisticButton.setToggleFieldValue(showStatistic);
if(this.questionObj.piRoundActive) {
this.firstRow.hide();
this.deleteAnswersButton.hide();
} else {
this.firstRow.show();
this.deleteAnswersButton.show();
}
},
getPossibleAnswers: function () {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment