11<template >
2- <v-container fluid class =" pa-0" :fill-height =" $vuetify.breakpoint.lgAndUp" >
2+ <v-container
3+ fluid
4+ class =" px-0 pt-0"
5+ :fill-height =" $vuetify.breakpoint.lgAndUp"
6+ >
37 <div class =" w-full h-full" >
48 <v-app-bar height =" 60" :dense =" $vuetify.breakpoint.mdAndDown" >
5- <v-btn icon to =" /" >
9+ <v-btn icon to =" /threads " >
610 <v-icon >{{ mdiArrowLeft }}</v-icon >
711 </v-btn >
812 <v-toolbar-title >
4549 Your next bill is for <b >${{ plan.price }}</b > on
4650 <b >{{
4751 new Date(
48- $store.getters.getUser.subscription_renews_at
52+ $store.getters.getUser.subscription_renews_at,
4953 ).toLocaleDateString()
5054 }}</b >
5155 </p >
6064 You will be downgraded to the <b >FREE</b > plan on
6165 <b >{{
6266 new Date(
63- $store.getters.getUser.subscription_ends_at
67+ $store.getters.getUser.subscription_ends_at,
6468 ).toLocaleDateString()
6569 }}</b >
6670 </p >
112116 of the current billing period on
113117 <b >{{
114118 new Date(
115- $store.getters.getUser.subscription_renews_at
119+ $store.getters.getUser.subscription_renews_at,
116120 ).toLocaleDateString()
117121 }}</b >
118122 </p >
@@ -395,7 +399,7 @@ export default Vue.extend({
395399 plan(): PaymentPlan {
396400 return this .plans .find (
397401 (x ) =>
398- x .id === (this .$store .getters .getUser ?.subscription_name || ' free' )
402+ x .id === (this .$store .getters .getUser ?.subscription_name || ' free' ),
399403 )!
400404 },
401405 isOnFreePlan(): boolean {
@@ -418,12 +422,6 @@ export default Vue.extend({
418422 },
419423 },
420424 async mounted() {
421- if (! this .$store .getters .getAuthUser ) {
422- await this .$store .dispatch (' setNextRoute' , this .$route .path )
423- await this .$router .push ({ name: ' index' })
424- setTimeout (this .loadData , 2000 )
425- return
426- }
427425 await this .loadData ()
428426 },
429427
0 commit comments