Commit b7549033 authored by jnbhm's avatar jnbhm
Browse files

fixed image preview

parent f9ed80c7
Pipeline #112363 passed with stage
in 14 seconds
......@@ -14,11 +14,14 @@
q-item(slot="header-empty" slot-scope="prop")
span no asset
q-item(slot="default-header" slot-scope="prop")
.q-pa-sm
.q-pa-sm.meida-item.custom-hover(v-if="prop.node.size" @click.native="cacheNewCell(prop.node)")
q-icon(:name="prop.node.icon || 'insert_drive_file'" size="24px" class="q-mr-sm")
span.q-pr-md.q-pb-md {{ prop.node.label }}
q-item.media-item.custom-hover(v-if="prop.node.size" @click.native="cacheNewCell(prop.node)")
q-item(v-if="prop.node.metadata['content-type'].slice(0,5) === 'image'" @click.native="cacheNewCell(prop.node)")
img.q-pa-md(:src="getAssetUrl(prop.node)" :alt="prop.node.title")
.q-pa-sm(v-else)
q-icon(:name="prop.node.icon || 'insert_drive_file'" size="24px" class="q-mr-sm")
span.q-pr-md.q-pb-md {{ prop.node.label }}
q-item.text-grey-8.text-italic.q-mt-sm(v-else) No Assets Found!
</template>
......@@ -67,6 +70,7 @@ export default {
},
async mounted () {
await this.initUserAssets()
console.log(this.userAssets)
},
methods: {
cacheNewCell (asset) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment