Skip to content
Snippets Groups Projects
Commit b9f730da authored by Thilo Wischmeyer's avatar Thilo Wischmeyer Committed by Thilo Wischmeyer
Browse files

Scroll to top of the subscription page when the current assignment changes

parent e4cb1b61
No related branches found
No related tags found
1 merge request!277Scroll to top of the subscription page when the current assignment changes
Pipeline #217097 canceled
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { Vue, Component} from 'vue-property-decorator' import { Vue, Component, Watch } from 'vue-property-decorator'
import { Route, NavigationGuard } from 'vue-router' import { Route, NavigationGuard } from 'vue-router'
import SubmissionCorrection from '@/components/submission_notes/SubmissionCorrection.vue' import SubmissionCorrection from '@/components/submission_notes/SubmissionCorrection.vue'
import SubmissionType from '@/components/submission_type/SubmissionType.vue' import SubmissionType from '@/components/submission_type/SubmissionType.vue'
...@@ -109,5 +109,10 @@ export default class SubscriptionWorkPage extends Vue { ...@@ -109,5 +109,10 @@ export default class SubscriptionWorkPage extends Vue {
this.$router.replace({name: 'correction-ended'}) this.$router.replace({name: 'correction-ended'})
}) })
} }
@Watch('currentAssignment')
onCurrentAssignmentChanged() {
window.scrollTo(0, 0)
}
} }
</script> </script>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment