Add genial.ly block to modal

This commit is contained in:
Ramon Wenger 2019-02-21 14:28:38 +01:00
parent 4f72f804c6
commit 170bfda78c
2 changed files with 17 additions and 1 deletions

View File

@ -7,11 +7,13 @@
<script>
import Modal from '@/components/Modal';
import InfogramBlock from '@/components/content-blocks/InfogramBlock';
import GeniallyBlock from '@/components/content-blocks/GeniallyBlock';
export default {
components: {
Modal,
InfogramBlock
InfogramBlock,
GeniallyBlock
},
computed: {

View File

@ -12,6 +12,7 @@
scrolling="yes"
allownetworking="all"></iframe>
</div>
<a class="genially-block__link" @click="openFullscreen">Fullscreen</a>
</div>
</template>
@ -23,6 +24,15 @@
src() {
return `https://view.genial.ly/${this.value.id}`;
}
},
methods: {
openFullscreen() {
this.$store.dispatch('showFullscreenInfographic', {
id: this.value.id,
type: 'genially-block'
});
}
}
}
</script>
@ -46,5 +56,9 @@
width: 100%;
height: 100%;
}
&__link {
cursor: pointer;
}
}
</style>