Skip to content
Snippets Groups Projects
Commit f72ad9c7 authored by Dominik Seeger's avatar Dominik Seeger
Browse files

subscription ended message clarification

parent 94f0c460
No related branches found
No related tags found
No related merge requests found
Pipeline #91415 failed
This commit is part of merge request !150. Comments created here will be created in the context of that merge request.
<template>
<v-card class="mx-auto center-page" id="subscription-ended">
<v-card-title class="title">
It seems like your subscription has (temporarily) ended.
No submissions left
</v-card-title>
<v-card-text>
If you've been validating feedback or resolving conflicts those subscriptions might become active again.<br/>
If that happens they'll become clickable in the sidebar.
All submissions for <b> {{ submissionTypeName() }} </b> in the current stage have been corrected. If you've
been validating feedback or <br/>
resolving conflicts some submissions may become active again.
If that is the case they will appear clickable in the sidebar again.
</v-card-text>
<v-card-actions class="text-xs-center">
<v-btn to="/home">
......@@ -18,10 +20,21 @@
</v-card>
</template>
<script>
export default {
name: 'subscription-ended'
<script lang="ts">
import Vue from 'vue'
import Component from 'vue-class-component'
import store from '@/store/store'
@Component
export default class SubscriptionEnded extends Vue {
get submissionTypes () { return store.state.submissionTypes }
submissionTypeName () {
return this.submissionTypes[this.$route.params.typePk].name
}
}
</script>
<style scoped>
......
......@@ -33,6 +33,7 @@
<script>
import SubmissionCorrection from '@/components/submission_notes/SubmissionCorrection'
import { SubmissionNotes } from '@/store/modules/submission-notes'
import SubmissionType from '@/components/SubmissionType'
import store from '@/store/store'
import SubmissionTests from '@/components/SubmissionTests'
......@@ -107,7 +108,8 @@ export default {
currentAssignment (val) {
this.$vuetify.goTo(0, { duration: 200, easing: 'easeInOutCubic' })
if (val === undefined) {
this.$router.replace('ended')
const typePk = SubmissionNotes.state.submission.type
this.$router.replace(typePk + '/ended')
Subscriptions.removeActiveSubscription()
Subscriptions.getSubscriptions()
}
......
......@@ -80,17 +80,17 @@ const router = new Router({
name: 'home',
component: StartPageSelector
},
{
path: 'subscription/ended',
name: 'subscription-ended',
component: SubscriptionEnded
},
{
path: 'subscription/:pk',
name: 'subscription',
beforeEnter: tutorOrReviewerOnly,
component: SubscriptionWorkPage
},
{
path: 'subscription/:typePk/ended',
name: 'subscription-ended',
component: SubscriptionEnded
},
{
path: 'feedback',
beforeEnter: tutorOrReviewerOnly,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment