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

View File

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

View File

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

View File

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