Skip to content

Commit dbf4938

Browse files
committed
Added status icons to right hand column ofr edit form #1768.
1 parent 5763ade commit dbf4938

File tree

1 file changed

+38
-8
lines changed

1 file changed

+38
-8
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>

0 commit comments

Comments
 (0)