diff --git a/src/components/Group.vue b/src/components/Group.vue index 66e9b7f5e..166c6cbbd 100644 --- a/src/components/Group.vue +++ b/src/components/Group.vue @@ -5,18 +5,19 @@

{{description}}

-
- - +
+ + +
-
- +
+ @@ -43,12 +44,31 @@ export default { description: String, objects: {}, tags: {}, - filter: Function + tagsField: String, }, methods: { setSelected: function(tag){ this.selected = tag - } + }, + + filter: function(tag){ + if (tag == '') + return this.objects + + var result = [] + + for(var i=0; i < this.objects.length; i++){ + var obj = this.objects[i].node; + for (var j=0; j \ No newline at end of file diff --git a/src/templates/People.vue b/src/templates/People.vue index 1fa864dd3..f1e71e82f 100644 --- a/src/templates/People.vue +++ b/src/templates/People.vue @@ -2,7 +2,7 @@
- +
@@ -60,42 +60,7 @@ export default { Group, Pagination }, - methods: { - filter: function(tag){ - if (tag == '') - return this.people - - var result = [] - for(var i=0; i < this.people.length; i++){ - var person = this.people[i]; - for (var j=0; j