diff --git a/public/index.html b/public/index.html index 3ed7dad..b47cbc8 100644 --- a/public/index.html +++ b/public/index.html @@ -9,7 +9,7 @@
diff --git a/src/components/ConfigSection.vue b/src/components/ConfigSection.vue index 4341042..b8713bb 100644 --- a/src/components/ConfigSection.vue +++ b/src/components/ConfigSection.vue @@ -1,7 +1,7 @@ @@ -164,20 +170,18 @@ export default { return monsterList.join(', ').replace(/,(?!.*,)/gmi, ' and'); }, masterListString(entry) { - let masterList = []; entry['masters'].forEach( id => { masterList.push(this.mastersData[id].name) }); - return 'Assigned by' + masterList.join(', ').replace(/,(?!.*,)/gmi, ' and'); - }, - testConfig() { - console.log(JSON.stringify(this.configData.blockList, null, 2)) + return 'Added to ' + masterList.join(', ').replace(/,(?!.*,)/gmi, ' and'); }, }, - beforeDestroy: function() { - this.$emit('config', this.configData) + watch: { + $route(to, from) { + console.log(JSON.stringify(this.configData, 0, 2)) + } } } diff --git a/src/components/MainContent.vue b/src/components/MainContent.vue index 0d92737..3be72ca 100644 --- a/src/components/MainContent.vue +++ b/src/components/MainContent.vue @@ -1,20 +1,23 @@ diff --git a/src/components/TableSection.vue b/src/components/TableSection.vue index 2db558d..4edd4ee 100644 --- a/src/components/TableSection.vue +++ b/src/components/TableSection.vue @@ -142,6 +142,7 @@ export default { this.reload(); } } + }