MOBILE-2656 question: Move unknown string to cannotdeterminestatus
parent
1db6326908
commit
451312c9fa
|
@ -1435,6 +1435,7 @@
|
|||
"core.pulltorefresh": "local_moodlemobileapp",
|
||||
"core.question.answer": "question",
|
||||
"core.question.answersaved": "question",
|
||||
"core.question.cannotdeterminestatus": "local_moodlemobileapp",
|
||||
"core.question.certainty": "qbehaviour_deferredcbm",
|
||||
"core.question.complete": "question",
|
||||
"core.question.correct": "question",
|
||||
|
@ -1452,7 +1453,6 @@
|
|||
"core.question.questionmessage": "local_moodlemobileapp",
|
||||
"core.question.questionno": "question",
|
||||
"core.question.requiresgrading": "question",
|
||||
"core.question.unknown": "question",
|
||||
"core.quotausage": "moodle",
|
||||
"core.redirectingtosite": "local_moodlemobileapp",
|
||||
"core.refresh": "moodle",
|
||||
|
|
|
@ -124,13 +124,13 @@ export class AddonQbehaviourDeferredFeedbackHandler implements CoreQuestionBehav
|
|||
}
|
||||
|
||||
if (complete < 0) {
|
||||
newState = 'unknown';
|
||||
newState = 'cannotdeterminestatus';
|
||||
} else if (complete > 0) {
|
||||
newState = 'complete';
|
||||
} else {
|
||||
const gradable = this.questionDelegate.isGradableResponse(question, newBasicAnswers);
|
||||
if (gradable < 0) {
|
||||
newState = 'unknown';
|
||||
newState = 'cannotdeterminestatus';
|
||||
} else if (gradable > 0) {
|
||||
newState = 'invalid';
|
||||
} else {
|
||||
|
|
|
@ -124,7 +124,7 @@ export class AddonQbehaviourManualGradedHandler implements CoreQuestionBehaviour
|
|||
}
|
||||
|
||||
if (complete < 0) {
|
||||
newState = 'unknown';
|
||||
newState = 'cannotdeterminestatus';
|
||||
} else if (complete > 0) {
|
||||
newState = 'complete';
|
||||
} else {
|
||||
|
|
|
@ -1435,6 +1435,7 @@
|
|||
"core.pulltorefresh": "Pull to refresh",
|
||||
"core.question.answer": "Answer",
|
||||
"core.question.answersaved": "Answer saved",
|
||||
"core.question.cannotdeterminestatus": "Cannot determine status",
|
||||
"core.question.certainty": "Certainty",
|
||||
"core.question.complete": "Complete",
|
||||
"core.question.correct": "Correct",
|
||||
|
@ -1452,7 +1453,6 @@
|
|||
"core.question.questionmessage": "Question {{$a}}: {{$b}}",
|
||||
"core.question.questionno": "Question {{$a}}",
|
||||
"core.question.requiresgrading": "Requires grading",
|
||||
"core.question.unknown": "Unknown",
|
||||
"core.quotausage": "You have currently used {{$a.used}} of your {{$a.total}} limit.",
|
||||
"core.redirectingtosite": "You will be redirected to the site.",
|
||||
"core.refresh": "Refresh",
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"answer": "Answer",
|
||||
"answersaved": "Answer saved",
|
||||
"cannotdeterminestatus": "Cannot determine status",
|
||||
"certainty": "Certainty",
|
||||
"complete": "Complete",
|
||||
"correct": "Correct",
|
||||
|
@ -17,6 +18,5 @@
|
|||
"partiallycorrect": "Partially correct",
|
||||
"questionmessage": "Question {{$a}}: {{$b}}",
|
||||
"questionno": "Question {{$a}}",
|
||||
"requiresgrading": "Requires grading",
|
||||
"unknown": "Unknown"
|
||||
"requiresgrading": "Requires grading"
|
||||
}
|
|
@ -230,10 +230,10 @@ export class CoreQuestionProvider {
|
|||
active: false,
|
||||
finished: true
|
||||
},
|
||||
unknown: { // Special state for Mobile, sometimes we won't have enough data to detemrine the state.
|
||||
name: 'unknown',
|
||||
cannotdeterminestatus: { // Special state for Mobile, sometimes we won't have enough data to detemrine the state.
|
||||
name: 'cannotdeterminestatus',
|
||||
class: 'core-question-unknown',
|
||||
status: 'unknown',
|
||||
status: 'cannotdeterminestatus',
|
||||
active: true,
|
||||
finished: false
|
||||
}
|
||||
|
@ -438,7 +438,7 @@ export class CoreQuestionProvider {
|
|||
* @return {CoreQuestionState} State.
|
||||
*/
|
||||
getState(name: string): CoreQuestionState {
|
||||
return this.STATES[name || 'unknown'];
|
||||
return this.STATES[name || 'cannotdeterminestatus'];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue