Thumnail placeholder images on Table, Cards and Records view mode for theme.
This commit is contained in:
parent
a7c169f8dd
commit
5137e7fc12
File diff suppressed because it is too large
Load Diff
|
@ -75,6 +75,11 @@ export default {
|
|||
items: Array,
|
||||
isLoading: false
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
thumbPlaceholderPath: tainacan_plugin.base_url + '/admin/images/placeholder_square.png'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
goToItemPage(item) {
|
||||
window.location.href = item.url;
|
||||
|
|
|
@ -73,7 +73,12 @@ export default {
|
|||
collectionId: Number,
|
||||
displayedMetadata: Array,
|
||||
items: Array,
|
||||
isLoading: false
|
||||
isLoading: false,
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
thumbPlaceholderPath: tainacan_plugin.base_url + '/admin/images/placeholder_square.png'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
goToItemPage(item) {
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
<span v-if="column.metadatum == 'row_thumbnail'">
|
||||
<img
|
||||
class="table-thumb"
|
||||
:src="item[column.slug].thumb">
|
||||
:src="item[column.slug].thumb ? item[column.slug].thumb : thumbPlaceholderPath">
|
||||
</span>
|
||||
<p
|
||||
v-tooltip="{
|
||||
|
@ -105,6 +105,11 @@ export default {
|
|||
items: Array,
|
||||
isLoading: false
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
thumbPlaceholderPath: tainacan_plugin.base_url + '/admin/images/placeholder_square.png'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
goToItemPage(item) {
|
||||
window.location.href = item.url;
|
||||
|
|
Loading…
Reference in New Issue