fixed_issue #6494
This commit is contained in:
Jitendra Singh 2022-07-20 19:19:11 +05:30 committed by GitHub
commit 0b7a883c6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -5,13 +5,14 @@
class="control"
id="{{ $attribute->code }}"
{{-- To Do (@devansh-webkul): Need to handle from the backend. --}}
@if ($attribute->code === 'sku')
v-validate="{ required: true, regex: /^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$/ }"
@else
v-validate="'{{ $validations }}'"
@endif
data-vv-as=""{{ $attribute->admin_name }}""
{{ in_array($attribute->code, ['url_key']) ? 'v-slugify' : '' }}
{{ $attribute->code == 'name' && ! $product[$attribute->code] ? 'v-slugify-target=\'url_key\'' : '' }}>
{{ $attribute->code == 'name' && ! $product->url_key ? 'v-slugify-target=\'url_key\'' : '' }}
>