Skip to content

Commit e729fc5

Browse files
authored
Merge pull request #1771 from FAIRsharing/status_icons_1768
Status icons 1768
2 parents 309d0a5 + dbf4938 commit e729fc5

File tree

2 files changed

+40
-10
lines changed

2 files changed

+40
-10
lines changed

src/components/Editor/EditRelationships.vue

Lines changed: 38 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -227,15 +227,45 @@
227227
</span>
228228
</v-list-item-content>
229229
<v-list-item-icon>
230-
<v-btn
231-
icon
232-
class="red white--text"
233-
@click="removeItem(association)"
230+
<record-status
231+
:record="association.linkedRecord"
232+
:show-only-status="true"
233+
:in-edit-form="true"
234+
/>
235+
<v-tooltip
236+
top
237+
>
238+
<template #activator="{ on }">
239+
<v-btn
240+
icon
241+
class="blue white--text mr-2"
242+
v-on="on"
243+
@click="showPreviewOverlay(association.linkedRecord)"
244+
>
245+
<v-icon small>
246+
fas fa-eye
247+
</v-icon>
248+
</v-btn>
249+
</template>
250+
View Record
251+
</v-tooltip>
252+
<v-tooltip
253+
top
234254
>
235-
<v-icon small>
236-
fa-trash
237-
</v-icon>
238-
</v-btn>
255+
<template #activator="{ on }">
256+
<v-btn
257+
icon
258+
class="red white--text"
259+
v-on="on"
260+
@click="removeItem(association)"
261+
>
262+
<v-icon small>
263+
fa-trash
264+
</v-icon>
265+
</v-btn>
266+
</template>
267+
Remove Relation
268+
</v-tooltip>
239269
</v-list-item-icon>
240270
</v-list-item>
241271
</v-list>

src/lib/GraphClient/queries/getRecord.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
"fields": [
137137
{
138138
"queryName": "linkedRecord",
139-
"fields": ["name", "abbreviation", "id", "registry", "type"]
139+
"fields": ["name", "abbreviation", "id", "registry", "type", "status"]
140140
},
141141
"recordAssocLabel",
142142
"recordAssocLabelId",
@@ -148,7 +148,7 @@
148148
"fields": [
149149
{
150150
"queryName": "fairsharingRecord",
151-
"fields": ["name", "abbreviation", "id", "registry", "type"]
151+
"fields": ["name", "abbreviation", "id", "registry", "type", "status"]
152152
},
153153
"recordAssocLabel"
154154
]

0 commit comments

Comments
 (0)