Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c88d8ba

Browse files
authored
Fix readonly relations
1 parent ab028b6 commit c88d8ba

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

resources/js/components/Crud/Fields/Relation/FieldRelation.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
<template>
22
<lit-base-field :field="field" :model="model" class="">
33
<template slot="title-right">
4-
<b-button v-if="field.allow_linking" v-b-modal="modalId" size="sm">
4+
<b-button
5+
v-if="field.allow_linking && !field.readonly"
6+
v-b-modal="modalId"
7+
size="sm"
8+
>
59
<lit-fa-icon icon="link" />
610
{{
711
__('base.item_select', {

0 commit comments

Comments
 (0)