Skip to content
Snippets Groups Projects
Commit cbb92672 authored by Henrik Askjer's avatar Henrik Askjer
Browse files

check parent name

parent 1418c550
No related branches found
No related tags found
No related merge requests found
...@@ -76,13 +76,14 @@ export default { ...@@ -76,13 +76,14 @@ export default {
}, },
data: function() { data: function() {
return { return {
collapsed: this.$parent.results_bm.length > 1 || this.$parent.results_bm.length > 1 collapsed: this.$parent.$options.name == 'SearchResults' && (this.$parent.results_bm.length + this.$parent.results_nn.length > 2)
} }
}, },
computed: { computed: {
collapsable: function() { collapsable: function() {
return this.$parent.results_bm.length > 1 || this.$parent.results_bm.length > 1 console.log(this.$parent.$options.name)
return this.$parent.$options.name == 'SearchResults' && (this.$parent.results_bm.length + this.$parent.results_nn.length > 2)
}, },
link_to_self: function() { link_to_self: function() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment