diff --git a/app/Console/Commands/SetupDevEnvironment.php b/app/Console/Commands/SetupDevEnvironment.php index f036e0a4..6d28a0df 100644 --- a/app/Console/Commands/SetupDevEnvironment.php +++ b/app/Console/Commands/SetupDevEnvironment.php @@ -805,6 +805,10 @@ class SetupDevEnvironment extends Command 'name' => 'registration', 'value' => 1, ], + [ + 'name' => 'app_payments_active', + 'value' => 1, + ], [ 'name' => 'storage_limitation', 'value' => 1, diff --git a/resources/js/components/Others/PlanPricingTables.vue b/resources/js/components/Others/PlanPricingTables.vue index f2ca96f9..20b29612 100644 --- a/resources/js/components/Others/PlanPricingTables.vue +++ b/resources/js/components/Others/PlanPricingTables.vue @@ -39,6 +39,9 @@ HardDriveIcon, ButtonBase, }, + props: [ + 'customRoute' + ], data() { return { plans: undefined, @@ -50,7 +53,10 @@ methods: { selectPlan(plan) { this.$emit('selected-plan', plan) - this.$router.push({name: 'UpgradeBilling'}) + + let route = this.customRoute ? this.customRoute : 'UpgradeBilling' + + this.$router.push({name: route}) } }, created() { diff --git a/resources/js/store/modules/userAuth.js b/resources/js/store/modules/userAuth.js index 0b2e10ca..e414b5a9 100644 --- a/resources/js/store/modules/userAuth.js +++ b/resources/js/store/modules/userAuth.js @@ -29,7 +29,6 @@ const actions = { if ([401, 403].includes(error.response.status)) { commit('SET_AUTHORIZED', false) - //router.push({name: 'SignIn'}) } } ) diff --git a/resources/js/views/Auth/SignIn.vue b/resources/js/views/Auth/SignIn.vue index 8e3bc4f3..0e89e4fc 100644 --- a/resources/js/views/Auth/SignIn.vue +++ b/resources/js/views/Auth/SignIn.vue @@ -193,17 +193,6 @@ }); } - if (error.response.status == 401) { - - if (error.response.data.error === 'invalid_client') { - events.$emit('alert:open', { - emoji: '🤔', - title: this.$t('popup_passport_error.title'), - message: this.$t('popup_passport_error.message') - }) - } - } - // End loading this.isLoading = false })