Merge branch 'main' of https://github.com/frappe/lms into onboarding-redirects
This commit is contained in:
@@ -263,6 +263,10 @@ class YouTubeVideo {
|
||||
</iframe>`;
|
||||
}
|
||||
|
||||
validate(savedData) {
|
||||
return !savedData.youtube || !savedData.youtube.trim() ? false : true;
|
||||
}
|
||||
|
||||
save(block_content) {
|
||||
return {
|
||||
youtube: this.data.youtube || this.youtube,
|
||||
@@ -329,6 +333,10 @@ class Quiz {
|
||||
</div>`;
|
||||
}
|
||||
|
||||
validate(savedData) {
|
||||
return !savedData.quiz || !savedData.quiz.trim() ? false : true;
|
||||
}
|
||||
|
||||
save(block_content) {
|
||||
return {
|
||||
quiz: this.data.quiz || this.quiz,
|
||||
@@ -385,6 +393,10 @@ class Upload {
|
||||
}
|
||||
}
|
||||
|
||||
validate(savedData) {
|
||||
return !savedData.file_url || !savedData.file_url.trim() ? false : true;
|
||||
}
|
||||
|
||||
save(block_content) {
|
||||
return {
|
||||
file_url: this.data.file_url || this.file_url,
|
||||
|
||||
Reference in New Issue
Block a user