Fixes wrong link to item on Records View Mode.

This commit is contained in:
Mateus Machado Luna 2018-08-20 16:36:03 -03:00
parent c09e69df09
commit fe4753a265
2 changed files with 9 additions and 14 deletions

View File

@ -44,13 +44,13 @@
padding: 40px 0em 0.4em 0em !important;
}
}
// Bulma modals customized for Tainacan
// Bulma modals customized for Tainacan (custom-dialog.vue)
.dialog {
.modal-background {
background-color: rgba(0, 0, 0, 0.70);
}
.modal-card {
background-color: $turquoise2;
background-color: white;
color: $secondary;
border-radius: 10px;
flex-wrap: wrap;
@ -59,13 +59,13 @@
margin: 0 auto !important;
.modal-card-head, .modal-card-body, .modal-card-foot {
background-color: $turquoise2;
color: $secondary;
background-color: white;
color: $gray5;
border: none;
padding-bottom: 12px;
}
.modal-custom-icon {
background-color: white;
background-color: $gray1;
border-radius: 50px;
height: 80px;
width: 80px;
@ -75,7 +75,7 @@
}
.modal-card-head {
h1 {
color: $secondary;
color: $gray5;
}
font-weight: normal;
padding: 0;

View File

@ -20,7 +20,7 @@
:gutter="42"
class="tainacan-records-container">
<a
href="www.google.com"
:href="item.url"
:key="index"
v-for="(item, index) of items"
class="tainacan-record">
@ -37,7 +37,6 @@
:key="index"
class="metadata-title"
v-if="collectionId != undefined && column.display && column.metadata_type_object != undefined && (column.metadata_type_object.related_mapped_prop == 'title')"
@click="goToItemPage(item)"
v-html="item.metadata != undefined ? renderMetadata(item.metadata, column) : ''" />
<p
v-tooltip="{
@ -49,19 +48,15 @@
v-for="(column, index) in tableMetadata"
:key="index"
v-if="collectionId == undefined && column.display && column.metadata_type_object != undefined && (column.metadata_type_object.related_mapped_prop == 'title')"
@click="goToItemPage(item)"
v-html="item.title != undefined ? item.title : ''" />
<!-- Remaining metadata -->
<div
class="media"
@click="goToItemPage(item)">
<div class="media">
<div class="list-metadata media-body">
<div
class="thumbnail"
v-if="item.thumbnail != undefined"
@click="goToItemPage(item)">
v-if="item.thumbnail != undefined">
<img :src="item['thumbnail'].medium_large ? item['thumbnail'].medium_large : thumbPlaceholderPath">
</div>
<span