Skip to content

Commit b4df7ba

Browse files
committed
Add 'can-add-new' attribute to v-lookup-component in various views
1 parent 79269da commit b4df7ba

File tree

7 files changed

+9
-1
lines changed

7 files changed

+9
-1
lines changed

packages/Webkul/Admin/src/Resources/views/activities/edit.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ class="w-full px-1 py-1 dark:bg-gray-900 dark:text-gray-300"
144144
<v-lookup-component
145145
:attribute="{'code': 'lead_id', 'name': 'Lead', 'lookup_type': 'leads'}"
146146
:value='@json($lookUpEntityData)'
147+
can-add-new="true"
147148
>
148149
<x-admin::form.control-group.control
149150
type="text"

packages/Webkul/Admin/src/Resources/views/components/attributes/edit/index.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
:attribute="$attribute"
3838
:value="$value"
3939
:validations="$validations"
40+
can-add-new="true"
4041
/>
4142

4243
@break

packages/Webkul/Admin/src/Resources/views/components/attributes/edit/lookup.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
:attribute="{{ json_encode($attribute) }}"
88
:validations="'{{ $validations }}'"
99
:value="{{ json_encode($lookUpEntityData)}}"
10-
can-add-new="{{ $canAddNew }}
10+
can-add-new="{{ $canAddNew ?? false }}"
1111
>
1212
<div class="relative inline-block w-full">
1313
<!-- Input Container -->

packages/Webkul/Admin/src/Resources/views/quotes/create.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ class="flex flex-col gap-4"
183183
<v-lookup-component
184184
:attribute="{'code': 'lead_id', 'name': 'Lead', 'lookup_type': 'leads'}"
185185
:value='@json($lookUpEntityData)'
186+
can-add-new="true"
186187
></v-lookup-component>
187188
</x-admin::form.control-group>
188189
</div>

packages/Webkul/Admin/src/Resources/views/quotes/edit.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ class="flex flex-col gap-4"
175175
<v-lookup-component
176176
:attribute="{'code': 'lead_id', 'name': 'Lead', 'lookup_type': 'leads'}"
177177
:value='@json($lookUpEntityData)'
178+
can-add-new="true"
178179
></v-lookup-component>
179180
</x-admin::form.control-group>
180181
</div>

packages/Webkul/Admin/src/Resources/views/settings/workflows/create.blade.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@ class="custom-select inline-flex h-10 w-1/3 items-center justify-between gap-x-1
492492
:attribute="{'code': 'conditions[' + index + '][value]', 'name': 'Email', 'lookup_type': matchedAttribute.lookup_type}"
493493
validations="required|email"
494494
:data="condition.value"
495+
can-add-new="true"
495496
></v-lookup-component>
496497
</div>
497498
</template>
@@ -728,6 +729,7 @@ class="custom-select inline-flex h-10 w-full items-center justify-between gap-x-
728729
:attribute="{'code': 'actions[' + index + '][value]', 'name': 'Email', 'lookup_type': matchedAttribute.lookup_type}"
729730
validations="required|email"
730731
:data="action.value"
732+
can-add-new="true"
731733
></v-lookup-component>
732734
</div>
733735
</template>

packages/Webkul/Admin/src/Resources/views/settings/workflows/edit.blade.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,7 @@ class="custom-select inline-flex h-10 w-1/3 items-center justify-between gap-x-1
495495
:attribute="{'code': 'conditions[' + index + '][value]', 'name': 'Email', 'lookup_type': matchedAttribute.lookup_type}"
496496
validations="required|email"
497497
:data="condition.value"
498+
can-add-new="true"
498499
></v-lookup-component>
499500
</div>
500501
</template>
@@ -731,6 +732,7 @@ class="custom-select inline-flex h-10 w-full items-center justify-between gap-x-
731732
:attribute="{'code': 'actions[' + index + '][value]', 'name': 'Email', 'lookup_type': matchedAttribute.lookup_type}"
732733
validations="required|email"
733734
:data="action.value"
735+
can-add-new="true"
734736
></v-lookup-component>
735737
</div>
736738
</template>

0 commit comments

Comments
 (0)