Hotfix/oct 24 fixes (#9261)

* Removed max height from text section

* Added items to mystery sets

* Group manager fixes

* Fixed promo code apply
This commit is contained in:
Keith Holliday
2017-10-24 17:41:36 -05:00
committed by Sabe Jones
parent b445bc8261
commit 6bc70ca471
7 changed files with 21 additions and 11 deletions

View File

@@ -23,8 +23,10 @@
<script>
import axios from 'axios';
import { mapState } from 'client/libs/store';
import notifications from 'client/mixins/notifications';
export default {
mixins: [notifications],
data () {
return {
codes: {
@@ -51,10 +53,12 @@ export default {
// })
},
async enterCoupon () {
let code = await axios.get(`/api/v3/coupons/enter/${this.couponCode}`);
let code = await axios.post(`/api/v3/coupons/enter/${this.couponCode}`);
if (!code) return;
// @TODO: what needs to be updated? User.sync();
// @TODO: mixin Notification.text(env.t('promoCodeApplied'));
this.$store.state.user.data = code.data.data;
this.text(this.$t('promoCodeApplied'));
},
},
};