diff --git a/website/client/app.vue b/website/client/app.vue index 8590f4ee7e..07c1ecb1fe 100644 --- a/website/client/app.vue +++ b/website/client/app.vue @@ -147,11 +147,7 @@ export default { // Check for conditions to reset the user auth const invalidUserMessage = [this.$t('invalidCredentials'), 'Missing authentication headers.']; if (invalidUserMessage.indexOf(error.response.data.message) !== -1) { - localStorage.removeItem('habit-mobile-settings'); - localStorage.removeItem('hello'); - this.$store.state.isUserLoggedIn = false; - window.location.href = '/static/home'; - return Promise.reject(error); + this.$store.dispatch('auth:logout'); } // Don't show errors from getting user details. These users have delete their account, diff --git a/website/client/components/achievements/questInvitation.vue b/website/client/components/achievements/questInvitation.vue index f1e5cd0d1e..6ad360c71f 100644 --- a/website/client/components/achievements/questInvitation.vue +++ b/website/client/components/achievements/questInvitation.vue @@ -49,7 +49,6 @@ import bModal from 'bootstrap-vue/lib/components/modal'; import quests from 'common/script/content/quests'; import { mapState } from 'client/libs/store'; -import revive from '../../../common/script/ops/revive'; import percent from '../../../common/script/libs/percent'; import {maxHealth} from '../../../common/script/index'; @@ -73,11 +72,7 @@ export default { }, methods: { close () { - this.$root.$emit('hide::modal', 'death'); - }, - revive () { - // @TODO: Post - revive(this.user); + this.$root.$emit('hide::modal', 'quest-invitation'); }, }, }; diff --git a/website/client/components/appFooter.vue b/website/client/components/appFooter.vue index cbd89a900c..44f073a370 100644 --- a/website/client/components/appFooter.vue +++ b/website/client/components/appFooter.vue @@ -82,7 +82,7 @@ .row .col-4 | © 2017 Habitica. All rights reserved. - // .debug.float-left(v-if="!IS_PRODUCTION && isUserLoaded") + .debug.float-left(v-if="!IS_PRODUCTION && isUserLoaded") button.btn.btn-primary(@click="debugMenuShown = !debugMenuShown") Toggle Debug Menu .debug-group(v-if="debugMenuShown") a.btn.btn-default(@click="setHealthLow()") Health = 1 diff --git a/website/client/components/creatorIntro.vue b/website/client/components/creatorIntro.vue index 0670891fce..1210008e3c 100644 --- a/website/client/components/creatorIntro.vue +++ b/website/client/components/creatorIntro.vue @@ -1350,7 +1350,15 @@ export default { cost = fullSet ? 1.25 : 0.5; // (Hair, skin, etc) 5G per set, 2G per individual } - let loginIncentives = ['background.blue', 'background.green', 'background.red', 'background.purple', 'background.yellow', 'background.violet']; + let loginIncentives = [ + 'background.blue', + 'background.green', + 'background.red', + 'background.purple', + 'background.yellow', + 'background.violet', + ]; + if (loginIncentives.indexOf(path) === -1) { if (fullSet) { if (confirm(this.$t('purchaseFor', {cost: cost * 4})) !== true) return; diff --git a/website/client/components/inventory/stable/index.vue b/website/client/components/inventory/stable/index.vue index 875b65a13f..afaa1ffd92 100644 --- a/website/client/components/inventory/stable/index.vue +++ b/website/client/components/inventory/stable/index.vue @@ -113,7 +113,7 @@ div(v-else) h4.popover-content-title {{ item.name }} template(slot="itemBadge", scope="context") - starBadge(:selected="item.key === currentPet", :show="item.isOwned()", @click="selectPet(item)") + starBadge(:selected="item.key === currentPet", :show="item.isOwned()", @click="selectPet(item)") .btn.btn-flat.btn-show-more(@click="setShowMore(petGroup.key)", v-if='petGroup.key !== "specialPets"') | {{ showMore === petGroup.key ? $t('showLess') : $t('showMore') }} diff --git a/website/client/components/inventory/stable/mountItem.vue b/website/client/components/inventory/stable/mountItem.vue index ac22282acd..6ede37aa13 100644 --- a/website/client/components/inventory/stable/mountItem.vue +++ b/website/client/components/inventory/stable/mountItem.vue @@ -1,6 +1,6 @@