Restore smaller header on share page

This commit is contained in:
Jonathan Cremin 2016-10-24 00:18:36 +01:00
parent 1684e8c555
commit 122060e9a5
8 changed files with 42 additions and 11 deletions

View file

@ -58,6 +58,7 @@ export default {
this.interval = setInterval(() => {
this.fetch();
}, 1000);
this.$store.state.share = true;
},
watch: {
// call again the method if the route changes
@ -69,7 +70,7 @@ export default {
const id = this.$route.params.id;
if (item && item.externalId === id && (typeof window === 'undefined' || !item.matches.some(match => match.matching))) {
this.item = this.$store.state.item;
} else {
} else if (id) {
fetchItem(this.$route.params.service, this.$route.params.type, id).then((res) => {
if(!res.body.matches.some(match => match.matching)) {
clearInterval(this.interval);