add pdf and html framing in creations
This commit is contained in:
@@ -44,14 +44,18 @@
|
||||
|
||||
|
||||
<b-modal
|
||||
v-if="creation && creation.piece.url"
|
||||
v-if="creation && creation.iframeUrl"
|
||||
:id="'modal-creation' + creation.id"
|
||||
class="modal-creation"
|
||||
static hide-footer hide-header
|
||||
>
|
||||
<template #default="{ hide }">
|
||||
<template #default="{ hide, visible }">
|
||||
<button-expand expanded @click="hide()" />
|
||||
<iframe :src="creation.piece.url" width="100%" height="100%" />
|
||||
<iframe
|
||||
v-if="visible"
|
||||
:src="creation.iframeUrl"
|
||||
width="100%" height="100%"
|
||||
/>
|
||||
</template>
|
||||
</b-modal>
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<div class="node-view-img-wrapper">
|
||||
<img :src="node.image.url" :alt="node.image.alt">
|
||||
|
||||
<button-expand v-if="node.piece.url" v-b-modal="'modal-creation' + node.id" class="center" />
|
||||
<button-expand v-if="node.iframeUrl" v-b-modal="'modal-creation' + node.id" class="center" />
|
||||
|
||||
<div class="btns-artwork">
|
||||
<b-button variant="depart" class="btn-shadow btn-artwork mr-2" @click="$emit('view-origin')">
|
||||
|
||||
Reference in New Issue
Block a user