Add genial.ly block to modal
This commit is contained in:
parent
4f72f804c6
commit
170bfda78c
|
|
@ -7,11 +7,13 @@
|
||||||
<script>
|
<script>
|
||||||
import Modal from '@/components/Modal';
|
import Modal from '@/components/Modal';
|
||||||
import InfogramBlock from '@/components/content-blocks/InfogramBlock';
|
import InfogramBlock from '@/components/content-blocks/InfogramBlock';
|
||||||
|
import GeniallyBlock from '@/components/content-blocks/GeniallyBlock';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
Modal,
|
Modal,
|
||||||
InfogramBlock
|
InfogramBlock,
|
||||||
|
GeniallyBlock
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@
|
||||||
scrolling="yes"
|
scrolling="yes"
|
||||||
allownetworking="all"></iframe>
|
allownetworking="all"></iframe>
|
||||||
</div>
|
</div>
|
||||||
|
<a class="genially-block__link" @click="openFullscreen">Fullscreen</a>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -23,6 +24,15 @@
|
||||||
src() {
|
src() {
|
||||||
return `https://view.genial.ly/${this.value.id}`;
|
return `https://view.genial.ly/${this.value.id}`;
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
methods: {
|
||||||
|
openFullscreen() {
|
||||||
|
this.$store.dispatch('showFullscreenInfographic', {
|
||||||
|
id: this.value.id,
|
||||||
|
type: 'genially-block'
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
@ -46,5 +56,9 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&__link {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue