-
Notifications
You must be signed in to change notification settings - Fork 2
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
CSCEXAM-1215 Changes to question editor #1007
Conversation
@@ -87,6 +87,14 @@ export class LibraryResultsComponent implements OnInit, OnChanges { | |||
this.selected.emit(selections); | |||
}; | |||
|
|||
calculateExams = (question: LibraryQuestion): number => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Saisko tän vähän lyhennettyä? Esim
question.examSectionQuestions.map(esq => esq.examSection.name).length
tjsp.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Itseasiassa tuossahan on turhaa kaikki paitsi viimeinen rivi?
@@ -171,6 +172,8 @@ export class ExamQuestionComponent implements OnInit { | |||
.map((optionType) => this.Question.getOptionTypeTranslation(optionType)); | |||
}; | |||
|
|||
sortByString = (prop: string[]): Array<string> => prop.sort(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Array<string> => string[]
?
<div class="col warning-text" *ngIf="examNames.length > 1"> | ||
{{ 'sitnet_exam_question_edit_instructions_more_than_one' | translate }} | ||
</div> | ||
<div class="col warning-text" *ngIf="examNames.length == 1"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
===
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kommitin nimi voisi olla englanniksi + muut huomiot
@@ -87,6 +87,14 @@ export class LibraryResultsComponent implements OnInit, OnChanges { | |||
this.selected.emit(selections); | |||
}; | |||
|
|||
calculateExams = (question: LibraryQuestion): number => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Itseasiassa tuossahan on turhaa kaikki paitsi viimeinen rivi?
@@ -75,6 +76,8 @@ export class QuestionBodyComponent implements OnInit { | |||
|
|||
showWarning = () => this.examNames.length > 1; | |||
|
|||
sortByString = (prop: string[]): Array<string> => prop.sort(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Array<string> => string[]
?
Ei taida olla enää validi? |
No description provided.