Skip to content

Commit

Permalink
Merge pull request #9403 from rtibbles/perseus_message_shield
Browse files Browse the repository at this point in the history
Move perseus specific logic into perseus renderer.
  • Loading branch information
marcellamaki authored May 4, 2022
2 parents 58ad79e + 7611d23 commit 48027e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 0 additions & 4 deletions kolibri/plugins/learn/assets/src/views/ExamPage/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -301,11 +301,7 @@
},
watch: {
attemptLogItemValue(newVal, oldVal) {
// HACK: manually dismiss the perseus renderer message when moving
// to a different item (fixes #3853)
if (newVal !== oldVal) {
this.$refs.contentRenderer.$refs.contentView.dismissMessage &&
this.$refs.contentRenderer.$refs.contentView.dismissMessage();
this.startTime = Date.now();
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@
// Don't store blank state for another item.
this.blankState = null;
// Clear any currently displayed messages when we render an item.
this.dismissMessage();
// Create react component with current item data.
// If the component already existed, this will perform an update.
this.$set(
Expand Down

0 comments on commit 48027e3

Please sign in to comment.