Oct 1 fixes (#9121)

* Added default tags to task

* Added seasonal gear check and show spooky

* Disabled spooky sparkles

* Fixed challenge remove tasks modal

* Hid checklist

* Added group gems modal

* Purchase with amazon

* Added check for user health
This commit is contained in:
Keith Holliday
2017-10-01 19:17:02 -05:00
committed by GitHub
parent 9f11820a02
commit f01e552637
14 changed files with 135 additions and 47 deletions

View File

@@ -1,5 +1,6 @@
<template lang="pug">
.row.user-tasks-page
broken-task-modal
task-modal(
:task="editingTask || creatingTask",
:purpose="creatingTask !== null ? 'create' : 'edit'",
@@ -289,6 +290,7 @@ import throttle from 'lodash/throttle';
import cloneDeep from 'lodash/cloneDeep';
import { mapState, mapActions } from 'client/libs/store';
import taskDefaults from 'common/script/libs/taskDefaults';
import brokenTaskModal from './brokenTaskModal';
import Item from 'client/components/inventory/item.vue';
@@ -300,6 +302,7 @@ export default {
bDropdownItem,
Item,
spells,
brokenTaskModal,
},
directives: {
markdown,
@@ -412,6 +415,8 @@ export default {
},
createTask (type) {
this.creatingTask = taskDefaults({type, text: ''});
this.creatingTask.tags = this.selectedTags;
// Necessary otherwise the first time the modal is not rendered
Vue.nextTick(() => {
this.$root.$emit('show::modal', 'task-modal');