Show people with the birth/death on item page

This commit is contained in:
Edward Betts 2019-10-08 11:11:15 +01:00
parent 96a03a0abe
commit 077cdcfeb2
6 changed files with 112 additions and 12 deletions

View file

@ -8,12 +8,18 @@ var app = new Vue({
searchTerms: '',
hits: [],
new_depicts: [],
people: people,
existing_depicts: existing_depicts,
},
methods: {
remove(index) {
this.$delete(this.new_depicts, index);
},
add_person(person) {
var hit = person;
hit['count'] = 0;
this.new_depicts.push(hit);
},
add_depicts(hit) {
this.new_depicts.push(hit);
this.hits = [];