mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
working on editing code so the modal emits from group-plans instead of from within the file
This commit is contained in:
@@ -495,6 +495,13 @@ export default {
|
|||||||
this.changePage(this.PAGES.CREATE_GROUP);
|
this.changePage(this.PAGES.CREATE_GROUP);
|
||||||
this.$root.$emit('bv::show::modal', 'group-plan-modal');
|
this.$root.$emit('bv::show::modal', 'group-plan-modal');
|
||||||
},
|
},
|
||||||
|
// launchModal () {
|
||||||
|
// this.$root.$on('group-plan-modal') {
|
||||||
|
// console.log('hello i am a modal');
|
||||||
|
// this.activePage = page;
|
||||||
|
// this.$root.$emit('bv::show::modal', 'group-plan-modal');
|
||||||
|
// };
|
||||||
|
// },
|
||||||
changePage (page) {
|
changePage (page) {
|
||||||
this.activePage = page;
|
this.activePage = page;
|
||||||
window.scrollTo(0, 0);
|
window.scrollTo(0, 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user