Skip to content

Commit

Permalink
Merge pull request #708 from jitendra-webkul/master
Browse files Browse the repository at this point in the history
Issue #701 fixed
  • Loading branch information
jitendra-webkul authored Nov 15, 2021
2 parents d2339af + e637bf0 commit 42ac116
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions packages/Webkul/Admin/src/Resources/views/mail/view.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class="lead-form"
<tab name="{{ __('admin::app.leads.contact-person') }}">
@include('admin::leads.common.contact', ['formScope' => 'lead-form.'])

<contact-component></contact-component>
<contact-component :data='@json(old('person'))'></contact-component>
</tab>

{!! view_render_event('admin.mail.view.actions.leads.create.form_controls.contact_person.after', ['email' => $email]) !!}
Expand All @@ -181,7 +181,7 @@ class="lead-form"
<tab name="{{ __('admin::app.leads.products') }}">
@include('admin::leads.common.products', ['formScope' => 'lead-form.'])

<product-list></product-list>
<product-list :data='@json(old('products'))'></product-list>
</tab>

{!! view_render_event('admin.mail.view.actions.leads.create.form_controls.products.after', ['email' => $email]) !!}
Expand Down Expand Up @@ -719,6 +719,26 @@ class="control"
@endif
},
mounted: function() {
if (! Array.isArray(window.serverErrors)) {
var self = this;
if (("{{ old('lead_pipeline_stage_id') }}")) {
this.$root.openModal('addLeadModal');
setTimeout(() => {
self.$root.addServerErrors('lead-form');
});
} else {
this.$root.openModal('addPersonModal');
setTimeout(() => {
self.$root.addServerErrors('person-form');
});
}
}
},
methods: {
search: debounce(function (type) {
this.is_searching[type] = true;
Expand Down

0 comments on commit 42ac116

Please sign in to comment.