@touchpoll/tp-survey 0.0.52 → 0.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2057,6 +2057,7 @@ class TpSurveyCoreService {
|
|
|
2057
2057
|
},
|
|
2058
2058
|
additional_info: {
|
|
2059
2059
|
QuestionaryUpdateTimestamp: new Date(this.#questionary?.Info.last_update_timestamp ?? 0).getTime(),
|
|
2060
|
+
quotaIsCompleted: this.#surveyQuotas.quotaIsCompleted
|
|
2060
2061
|
},
|
|
2061
2062
|
ResultQuotaGuids: [],
|
|
2062
2063
|
ResultQuota2dGuids: [],
|
|
@@ -2485,7 +2486,7 @@ class SurveyPlayComponent {
|
|
|
2485
2486
|
//вопрос должен быть не eqEND и не eqLANG(для них кнопки далее быть не должно) + вопрос должен быть заполнен или его можно пропустить(указано в настройках)
|
|
2486
2487
|
const isAvailable = !([QuestionsType.eqEND, QuestionsType.eqLANG].includes(question.QuestionType)) && (this.#core.questionIsComplete(question.QuestionGuid) || question.CanSkip);
|
|
2487
2488
|
//в настройках вопроса можно указать задержку перед активацией кнопки Далее
|
|
2488
|
-
let delayInSettings = isNaN(Number(question.BtnNextDelaySec)) ? 1 : Number(question.BtnNextDelaySec);
|
|
2489
|
+
let delayInSettings = isNaN(Number(question.BtnNextDelaySec)) ? 1 : Number(question.BtnNextDelaySec) * 1000;
|
|
2489
2490
|
//но если isAvailable не равно true(может быть undefined или false) то кнопка "не активируется" сразу
|
|
2490
2491
|
if (!(isAvailable === true)) {
|
|
2491
2492
|
delayInSettings = 1;
|