Commit 802f6653 authored by Anton Koch's avatar Anton Koch
Browse files

Merge branch '535-MoSys-Asset-Folder-Handling' into 'release_2_5'

535 mo sys asset folder handling

See merge request !61
parents 58a32dd5 5d062d4d
Pipeline #112376 passed with stage
in 13 seconds
......@@ -14,11 +14,28 @@
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 }}
// Image Preview
q-item(
v-if="prop.node.metadata['content-type'].slice(0,5) === 'image'"
@click.native="cacheNewCell(prop.node)"
)
img.q-pt-sm(:src="getAssetUrl(prop.node)" :alt="prop.node.title")
// Video Preview
q-item(
v-if="prop.node.metadata['content-type'].slice(0,5) === 'video'"
@click.native="cacheNewCell(prop.node)"
)
video.q-pt-sm(
:src="getAssetUrl(prop.node)"
:type="prop.node.metadata['content-type']"
: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.media-item.custom-hover(v-if="prop.node.size" @click.native="cacheNewCell(prop.node)")
img.q-pa-md(:src="getAssetUrl(prop.node)" :alt="prop.node.title")
q-item.text-grey-8.text-italic.q-mt-sm(v-else) No Assets Found!
</template>
......@@ -67,6 +84,7 @@ export default {
},
async mounted () {
await this.initUserAssets()
console.log(this.userAssets)
},
methods: {
cacheNewCell (asset) {
......@@ -157,7 +175,7 @@ export default {
</script>
<style lang="stylus" scoped>
img
max-width 100%
img, video
max-width 150px
max-height 150px
</style>
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