Restore smaller header on share page
This commit is contained in:
parent
1684e8c555
commit
122060e9a5
8 changed files with 42 additions and 11 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue