Merge branch 'develop' into sabrecat/usernames-master

This commit is contained in:
Sabe Jones
2018-11-06 19:56:45 -06:00
13 changed files with 80 additions and 363 deletions
@@ -317,7 +317,7 @@ export default {
},
createTask (type) {
this.taskFormPurpose = 'create';
this.creatingTask = taskDefaults({type, text: ''});
this.creatingTask = taskDefaults({type, text: ''}, this.user);
this.workingTask = this.creatingTask;
// Necessary otherwise the first time the modal is not rendered
Vue.nextTick(() => {
@@ -45,7 +45,7 @@ export default {
type: 'todo',
notes,
};
this.task = taskDefaults(newTask);
this.task = taskDefaults(newTask, this.$store.state.user.data);
this.$root.$emit('bv::show::modal', 'copyAsTodo');
});
},
@@ -401,7 +401,7 @@ export default {
},
createTask (type) {
this.taskFormPurpose = 'create';
this.creatingTask = taskDefaults({type, text: ''});
this.creatingTask = taskDefaults({type, text: ''}, this.user);
this.workingTask = this.creatingTask;
// Necessary otherwise the first time the modal is not rendered
Vue.nextTick(() => {
@@ -373,9 +373,12 @@ export default {
if (potion === null || egg === null)
return false;
let petKey = `${egg.key}-${potion.key}`;
const petKey = `${egg.key}-${potion.key}`;
if (!this.content.petInfo[petKey])
const petInfo = this.content.petInfo[petKey];
// Check pet exists and is hatchable
if (!petInfo || !petInfo.potion)
return false;
return !this.userHasPet(potion.key, egg.key);
+1 -1
View File
@@ -540,7 +540,7 @@ export default {
const tasks = text.split('\n').reverse().filter(taskText => {
return taskText ? true : false;
}).map(taskText => {
const task = taskDefaults({type: this.type, text: taskText});
const task = taskDefaults({type: this.type, text: taskText}, this.user);
task.tags = this.selectedTags;
return task;
});
+1 -1
View File
@@ -435,7 +435,7 @@
cursor: default !important;
}
.svg-icon.check {
.svg-icon.check:not(.display-check-icon) {
display: none !important;
}
}
+1 -1
View File
@@ -445,7 +445,7 @@ export default {
},
createTask (type) {
this.openCreateBtn = false;
this.creatingTask = taskDefaults({type, text: ''});
this.creatingTask = taskDefaults({type, text: ''}, this.user);
this.creatingTask.tags = this.selectedTags;
// Necessary otherwise the first time the modal is not rendered