fix(onboarding): improve modal launching and clicky behavior

This commit is contained in:
SabreCat
2022-08-19 14:09:41 -05:00
parent 95714599f0
commit 49a20218a5
4 changed files with 8 additions and 6 deletions

View File

@@ -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');
},
},

View File

@@ -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 = {

View File

@@ -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];

View File

@@ -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!"
}