Skip to content

Commit

Permalink
Merge pull request #2045 from rtibbles/you_win_this_time_page_state
Browse files Browse the repository at this point in the history
Revert massive regression, fix issue more safely.
  • Loading branch information
rtibbles committed Aug 29, 2017
2 parents 6e19d87 + 20ff2d0 commit 035594b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions kolibri/plugins/learn/assets/src/state/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ function showContentUnavailable(store) {

function redirectToChannelSearch(store) {
store.dispatch('SET_PAGE_NAME', PageNames.SEARCH_ROOT);
store.dispatch('SET_PAGE_STATE', {});
store.dispatch('CORE_SET_PAGE_LOADING', true);
store.dispatch('CORE_SET_ERROR', null);
store.dispatch('CORE_SET_TITLE', 'Search');
Expand All @@ -501,6 +502,7 @@ function redirectToChannelSearch(store) {

function showSearch(store, channelId, searchTerm) {
store.dispatch('SET_PAGE_NAME', PageNames.SEARCH);
store.dispatch('SET_PAGE_STATE', {});
store.dispatch('CORE_SET_PAGE_LOADING', true);
store.dispatch('CORE_SET_ERROR', null);
store.dispatch('CORE_SET_TITLE', 'Search');
Expand Down
3 changes: 1 addition & 2 deletions kolibri/plugins/learn/assets/src/state/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ const mutations = {
state.pageName = name;
},
SET_PAGE_STATE(state, pageState) {
const oldPageState = state.pageState;
state.pageState = Object.assign(oldPageState, pageState);
state.pageState = pageState;
},
SET_EXAM_LOG(state, examLog) {
state.examLog = examLog;
Expand Down
1 change: 0 additions & 1 deletion kolibri/plugins/media_player/assets/src/views/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,6 @@
window.addEventListener('resize', this.throttledResizePlayer);
},
beforeDestroy() {
this.recordProgress();
this.$emit('stopTracking');
window.removeEventListener('resize', this.throttledResizePlayer);
this.player.dispose();
Expand Down

0 comments on commit 035594b

Please sign in to comment.