mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
fix(onboarding): improve modal launching and clicky behavior
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
title="New Shared Task Board"
|
||||
size="lg"
|
||||
hide-footer="hide-footer"
|
||||
:no-close-on-backdrop="true"
|
||||
:no-close-on-esc="true"
|
||||
>
|
||||
<div
|
||||
slot="modal-header"
|
||||
@@ -196,6 +198,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
close () {
|
||||
this.$store.dispatch('user:set', { 'flags.tour.groupPlans': -2 });
|
||||
this.$root.$emit('bv::hide::modal', 'group-plans-update');
|
||||
},
|
||||
},
|
||||
|
||||
@@ -319,6 +319,9 @@ export default {
|
||||
this.group.members = members;
|
||||
|
||||
this.loadTasks();
|
||||
if (this.user.flags.tour.groupPlans !== -2) {
|
||||
this.$root.$emit('bv::show::modal', 'group-plans-update');
|
||||
}
|
||||
},
|
||||
async loadTasks () {
|
||||
this.tasksByType = {
|
||||
|
||||
@@ -136,8 +136,8 @@ export default {
|
||||
case 'patrons': return this.goto('hall', 0);
|
||||
case 'items': return this.goto('market', 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 'groupPlanDetailTaskInformation': return this.alternativeModal('groupPlans', 'group-plans-update');
|
||||
}
|
||||
|
||||
return null;
|
||||
@@ -172,10 +172,6 @@ export default {
|
||||
this.markTourComplete(chapter);
|
||||
});
|
||||
},
|
||||
alternativeModal (chapter, modal) {
|
||||
this.$root.$emit('bv::show::modal', modal);
|
||||
this.markTourComplete(chapter);
|
||||
},
|
||||
markTourComplete (chapter) {
|
||||
const ups = {};
|
||||
const lastKnownStep = this.user.flags.tour[chapter];
|
||||
|
||||
@@ -386,6 +386,6 @@
|
||||
"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",
|
||||
"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!"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user