mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
fix(onboarding): improve modal launching and clicky behavior
This commit is contained in:
@@ -4,6 +4,8 @@
|
|||||||
title="New Shared Task Board"
|
title="New Shared Task Board"
|
||||||
size="lg"
|
size="lg"
|
||||||
hide-footer="hide-footer"
|
hide-footer="hide-footer"
|
||||||
|
:no-close-on-backdrop="true"
|
||||||
|
:no-close-on-esc="true"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
slot="modal-header"
|
slot="modal-header"
|
||||||
@@ -196,6 +198,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
close () {
|
close () {
|
||||||
|
this.$store.dispatch('user:set', { 'flags.tour.groupPlans': -2 });
|
||||||
this.$root.$emit('bv::hide::modal', 'group-plans-update');
|
this.$root.$emit('bv::hide::modal', 'group-plans-update');
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -319,6 +319,9 @@ export default {
|
|||||||
this.group.members = members;
|
this.group.members = members;
|
||||||
|
|
||||||
this.loadTasks();
|
this.loadTasks();
|
||||||
|
if (this.user.flags.tour.groupPlans !== -2) {
|
||||||
|
this.$root.$emit('bv::show::modal', 'group-plans-update');
|
||||||
|
}
|
||||||
},
|
},
|
||||||
async loadTasks () {
|
async loadTasks () {
|
||||||
this.tasksByType = {
|
this.tasksByType = {
|
||||||
|
|||||||
@@ -136,8 +136,8 @@ export default {
|
|||||||
case 'patrons': return this.goto('hall', 0);
|
case 'patrons': return this.goto('hall', 0);
|
||||||
case 'items': return this.goto('market', 0);
|
case 'items': return this.goto('market', 0);
|
||||||
case 'stable': return this.goto('pets', 0);
|
case 'stable': return this.goto('pets', 0);
|
||||||
|
// @TODO: same page now case 'stable': return this.goto('mounts', 0);
|
||||||
case 'equipment': return this.goto('equipment', 0);
|
case 'equipment': return this.goto('equipment', 0);
|
||||||
case 'groupPlanDetailTaskInformation': return this.alternativeModal('groupPlans', 'group-plans-update');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
@@ -172,10 +172,6 @@ export default {
|
|||||||
this.markTourComplete(chapter);
|
this.markTourComplete(chapter);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
alternativeModal (chapter, modal) {
|
|
||||||
this.$root.$emit('bv::show::modal', modal);
|
|
||||||
this.markTourComplete(chapter);
|
|
||||||
},
|
|
||||||
markTourComplete (chapter) {
|
markTourComplete (chapter) {
|
||||||
const ups = {};
|
const ups = {};
|
||||||
const lastKnownStep = this.user.flags.tour[chapter];
|
const lastKnownStep = this.user.flags.tour[chapter];
|
||||||
|
|||||||
@@ -386,6 +386,6 @@
|
|||||||
"newGroupsBullet10a": "<strong>Leave a task unassigned</strong> if any member can complete it",
|
"newGroupsBullet10a": "<strong>Leave a task unassigned</strong> if any member can complete it",
|
||||||
"newGroupsBullet10b": "<strong>Assign a task to one member</strong> so only they can complete it",
|
"newGroupsBullet10b": "<strong>Assign a task to one member</strong> so only they can complete it",
|
||||||
"newGroupsBullet10c": "<strong>Assign a task to multiple members</strong> if they all need to complete it",
|
"newGroupsBullet10c": "<strong>Assign a task to multiple members</strong> if they all need to complete it",
|
||||||
"newGroupsVisitFAQ": "Visit the <a href='/static/faq#group-plans'>FAQ</a> from the Help dropdown for more guidance.",
|
"newGroupsVisitFAQ": "Visit the <a href='/static/faq#group-plans' target='_blank'>FAQ</a> from the Help dropdown for more guidance.",
|
||||||
"newGroupsEnjoy": "We hope you enjoy the new Group Plans experience!"
|
"newGroupsEnjoy": "We hope you enjoy the new Group Plans experience!"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user