Skip to content

Commit e559bb0

Browse files
committed
fixing preview record popup in profile page
1 parent faf3500 commit e559bb0

20 files changed

+132
-129
lines changed

src/components/Navigation/Loaders.vue

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
cols="12"
99
class="text-center"
1010
>
11-
<h2 class="blue--text">
11+
<h2 class="text-blue">
1212
Loading your content. <br> Please wait ...
1313
</h2>
1414
</v-col>
@@ -678,9 +678,9 @@
678678
</template>
679679

680680
<script>
681-
export default {
682-
name: "Loaders"
683-
}
681+
export default {
682+
name: "Loaders"
683+
}
684684
</script>
685685

686686
<style scoped>

src/components/Records/Record/DataProcessesAndConditions.vue

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
getField('metadata')['certifications_and_community_badges'].length)
2020
"
2121
class="pa-4 d-flex flex-column"
22-
outlined
22+
border
2323
:color="backColor"
2424
tile
2525
elevation="3"
@@ -44,7 +44,7 @@
4444
v-for="(item, key, index) in generateDataConditions()"
4545
:key="key + '_' + index"
4646
class="pa-4 mt-15 d-flex flex-column"
47-
outlined
47+
border
4848
color="white"
4949
tile
5050
elevation="3"
@@ -54,7 +54,7 @@
5454
size="20"
5555
/>
5656
<v-card-title class="pa-0 text--primary card-title-customize">
57-
{{ cleanString(key) | capitalize }}
57+
{{ $filters.capitalize(cleanString(key)) }}
5858
</v-card-title>
5959
<v-card-text class="ma-0 pt-8">
6060
<div v-if="key === 'licences'">
@@ -74,7 +74,7 @@
7474
:key="subItem.name + '_' + subIndex"
7575
class="pa-4 mt-2 d-flex flex-column v-card-hover"
7676
flat
77-
outlined
77+
border
7878
>
7979
<a
8080
v-if="subItem.url"

src/components/Records/Record/GeneralInfo.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<template xmlns:v-slot="http://www.w3.org/1999/XSL/Transform">
1+
<template>
22
<v-card
3-
class="pa-4 d-flex flex-column"
3+
class="pa-4 d-flex flex-column overflow-initial"
44
border
55
:color="backColor"
66
tile
@@ -79,7 +79,7 @@
7979
size="small"
8080
start
8181
>
82-
fa-project-diagram
82+
fas fa-project-diagram
8383
</v-icon>
8484
<span
8585
v-if="currentRecord.fairsharingRecord.hasGraph"

src/components/Records/Record/GeneralInfo/Badge/InfoBadge.vue

+19-19
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@
99
:rotate="360"
1010
:size="85"
1111
:width="10"
12-
:value="badge.progress"
12+
:model-value="badge.progress"
1313
:color="badge.progressColor"
1414
class="mr-1"
1515
>
1616
<v-tooltip
1717
v-if="showProgressHover"
18-
bottom
19-
nudge-bottom="30"
18+
location="bottom"
19+
offset="30"
2020
:open-on-hover="showProgressHover"
2121
:color="badge.progressColor"
2222
>
23-
<template #activator="{ on }">
23+
<template #activator="{ props }">
2424
<div
25-
v-on="on"
25+
v-bind="props"
2626
>
2727
<div class="circle-transparent" />
2828
</div>
@@ -31,13 +31,13 @@
3131
</v-tooltip>
3232
<v-tooltip
3333
v-if="badge.icon"
34-
top
34+
location="top"
3535
:open-on-hover="showTextHover"
3636
>
37-
<template #activator="{ on }">
37+
<template #activator="{ props }">
3838
<div
3939
style="position:relative;"
40-
v-on="on"
40+
v-bind="props"
4141
>
4242
<Icon
4343
style="cursor:help"
@@ -105,20 +105,20 @@ export default {
105105
methods: {
106106
mergedAssociations() {
107107
return prepareAssociations(this, this.currentRecordLocal['fairsharingRecord'].recordAssociations,
108-
this.currentRecordLocal['fairsharingRecord'].reverseRecordAssociations)
108+
this.currentRecordLocal['fairsharingRecord'].reverseRecordAssociations)
109109
},
110110
checkBadges() {
111111
this.badges = new BadgeBuilder(this.currentRecordLocal['fairsharingRecord'])
112-
.hasStatus()
113-
.hasLicence()
114-
.hasMaintainer()
115-
.hasStandard()
116-
.hasDatabase()
117-
.hasPolicy()
118-
.hasAPI()
119-
.hasPID()
120-
.hasCertificate()
121-
.getBadges()
112+
.hasStatus()
113+
.hasLicence()
114+
.hasMaintainer()
115+
.hasStandard()
116+
.hasDatabase()
117+
.hasPolicy()
118+
.hasAPI()
119+
.hasPID()
120+
.hasCertificate()
121+
.getBadges()
122122
},
123123
}
124124
}

src/components/Records/Record/GeneralInfo/Citations.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
md="6"
99
>
1010
<v-card
11-
class="pa-4 d-flex flex-column"
11+
class="pa-4 d-flex flex-column overflow-initial"
1212
border
1313
color="white"
1414
tile

src/components/Records/Record/GeneralInfo/Description.vue

+1-4
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,15 @@
2121
class="ma-0 full-width ml-md-12 ml-8"
2222
:class="{'text-end' : $vuetify.display.smAndDown}"
2323
>
24-
{{ getField('description') | capitalize }}
24+
{{ $filters.capitalize(getField('description')) }}
2525
</p>
2626
</div>
2727
</template>
2828

2929
<script>
3030
import {mapGetters, mapState} from "vuex";
31-
32-
import stringUtils from "@/utils/stringUtils";
3331
export default {
3432
name: "Description",
35-
mixins: [stringUtils],
3633
computed: {
3734
...mapGetters("record", ["getField"]),
3835
...mapState("editor", ["recordTooltips"]),

src/components/Records/Record/GeneralInfo/Keywords.vue

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
:key="item.label"
3131
class="mr-2 mb-2"
3232
:color="getChipColor(item)"
33-
text-color="white"
33+
variant="flat"
3434
@click="returnToSearch('subjects', item.label)"
3535
>
3636
<KeywordTooltip
@@ -70,7 +70,7 @@
7070
:key="item.label"
7171
class="mr-2 mb-2"
7272
:color="getChipColor(item)"
73-
text-color="white"
73+
variant="flat"
7474
@click="returnToSearch('domains', item.label)"
7575
>
7676
<KeywordTooltip
@@ -109,7 +109,7 @@
109109
v-for="item in getField('taxonomies')"
110110
:key="item.label"
111111
class="mr-2 mb-2"
112-
text-color="white"
112+
variant="flat"
113113
:color="getChipColor(item)"
114114
@click="returnToSearch('taxonomies', item.label)"
115115
>
@@ -149,7 +149,7 @@
149149
v-for="item in getField('userDefinedTags')"
150150
:key="item.label"
151151
class="mr-2 mb-2 text-capitalize"
152-
text-color="white"
152+
variant="flat"
153153
:color="getChipColor(item)"
154154
@click="returnToSearch('userDefinedTags', item.label)"
155155
>

src/components/Records/Record/GeneralInfo/Registry.vue

+1-4
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,15 @@
2121
class="ma-0 full-width ml-md-12 ml-8"
2222
:class="{'text-end' : $vuetify.display.smAndDown}"
2323
>
24-
{{ getField('registry') | capitalize }}
24+
{{ $filters.capitalize(getField('registry')) }}
2525
</p>
2626
</div>
2727
</template>
2828

2929
<script>
3030
import {mapGetters, mapState} from "vuex";
31-
32-
import stringUtils from "@/utils/stringUtils";
3331
export default {
3432
name: "Registry",
35-
mixins: [stringUtils],
3633
computed: {
3734
...mapGetters("record", ["getField"]),
3835
...mapState("editor", ["recordTooltips"]),

src/components/Records/Record/GeneralInfo/Type.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
class="ma-0 full-width ml-md-12 ml-8"
2222
:class="{'text-end' : $vuetify.display.smAndDown}"
2323
>
24-
{{ cleanString(getField('type')) | capitalize }}
24+
{{ $filters.capitalize(cleanString(getField('type'))) }}
2525
</p>
2626
</div>
2727
</template>

src/components/Records/Record/RecordMenu.vue

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
<template>
22
<div class="text-right">
33
<v-menu
4-
offset-y
54
:disabled="readOnlyMode"
65
>
7-
<template #activator="{ on, attrs }">
6+
<template #activator="{ props }">
87
<v-btn
98
class="mt-1"
109
color="primary"
11-
v-bind="attrs"
12-
v-on="on"
10+
v-bind="props"
1311
>
1412
Actions
1513
<v-icon
16-
small
17-
right
14+
size="small"
15+
end
1816
>
1917
fa-chevron-down
2018
</v-icon>

src/components/Records/Record/RelatedContent.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,11 @@ export default {
177177
const _module = this;
178178
// A policy may recommend collections; other records may be collected.
179179
if (_module.currentRecord['fairsharingRecord'].registry === 'Policy') {
180-
_module.$set(_module.tabsData.tabs, 'related_collections', {registry: ["Collection"], data: [], count:0});
180+
_module.tabsData.tabs['related_collections'] = {registry: ["Collection"], data: [], count:0}
181181
}
182182
if (_module.currentRecord['fairsharingRecord'].registry === 'FAIRassist' ||
183183
_module.currentRecord['fairsharingRecord'].registry === 'Standard') {
184-
_module.$set(_module.tabsData.tabs, 'related_fairassist_components', {registry: ["FAIRassist"], data: [], count:0});
184+
_module.tabsData.tabs['related_fairassist_components'] = {registry: ["FAIRassist"], data: [], count:0}
185185
}
186186
if (Object.keys(_module.currentRecord['fairsharingRecord']).includes('recordAssociations') ||
187187
Object.keys(_module.currentRecord['fairsharingRecord']).includes('reverseRecordAssociations')) {

0 commit comments

Comments
 (0)