some console error fixed

This commit is contained in:
Burak Civan 2022-10-19 15:55:20 +03:00
parent 07e29d1650
commit 6e8588e06b
6 changed files with 33 additions and 30 deletions

View File

@ -52,13 +52,11 @@
</div>
</div>
</div>
</div>
</div>
<div v-else class="document-contact-with-contact-bill-to">
<div>
<span class="text-sm">{{ contactInfoText }}</span>
</div>
</div>
<div class="overflow-x-visible mt-0">
<table class="table table-borderless p-0">
<tbody>
@ -88,28 +86,26 @@
<th class="font-normal text-xs text-left p-0">
{{ contact.phone }} &nbsp;
<span v-if="contact.email">
- {{ contact.email }}
- {{ contact.email }}
</span>
</th>
</tr>
</tbody>
</table>
</div>
<div class="absolute flex flex-col mt-2">
<button type="button" class="p-0 text-xs text-purple ltr:text-left rtl:text-right" @click="onContactEdit">
<span class="bg-no-repeat bg-0-2 bg-0-full hover:bg-full-2 bg-gradient-to-b from-transparent to-purple transition-backgroundSize">
{{ editContactText.replace(':contact_name', contact.name).replace(':field', contact.name) }}
</span>
</button>
<button type="button" class="p-0 text-xs text-purple ltr:text-left rtl:text-right" @click="onContactList">
<span class="bg-no-repeat bg-0-2 bg-0-full hover:bg-full-2 bg-gradient-to-b from-transparent to-purple transition-backgroundSize">
{{ chooseDifferentContactText }}
</span>
</button>
</div>
</div>
</div>
<div :class="show.contact_selected ? 'flex' : 'hidden'" class="absolute flex-col mt-2">
<button type="button" class="p-0 text-xs text-purple ltr:text-left rtl:text-right" @click="onContactEdit">
<span class="bg-no-repeat bg-0-2 bg-0-full hover:bg-full-2 bg-gradient-to-b from-transparent to-purple transition-backgroundSize">
{{ editContactText.replace(':contact_name', contact.name).replace(':field', contact.name) }}
</span>
</button>
<button type="button" class="p-0 text-xs text-purple ltr:text-left rtl:text-right" @click="onContactList">
<span class="bg-no-repeat bg-0-2 bg-0-full hover:bg-full-2 bg-gradient-to-b from-transparent to-purple transition-backgroundSize">
{{ chooseDifferentContactText }}
</span>
</button>
</div>
<component v-bind:is="add_new_html" @submit="onSubmit" @cancel="onCancel"></component>
</div>
</div>
@ -556,6 +552,10 @@ export default {
document.removeEventListener('click', this.closeIfClickedOutside);
}
},
// closeIfClickedOutside() {
// this.show.contact_list = false;
// }
},
created() {

View File

@ -76,9 +76,9 @@
<button type="button" class="w-full h-full flex items-center rounded-md px-2 text-sm hover:bg-lilac-100" data-btn="btn btn-link" @click="onOptionSelected(option.key)">{{ option.value }}</button>
</li>
<li ref="" v-if="search" class="p-2 hover:bg-lilac-900 dropdown-item">
<button type="button" class="text-left" @click="onInputConfirm">{{ searchText }}</button>
</li>
<!-- <li ref="" v-if="search" class="w-full flex items-center px-2 h-9 leading-9 whitespace-nowrap">
<button type="button" class="w-full h-full flex items-center rounded-md px-2 text-sm hover:bg-lilac-100" @click="onInputConfirm">{{ searchText }}</button>
</li> -->
</div>
<div :id="'search-field-operator-' + _uid" class="absolute top-12 ltr:left-8 rtl:right-8 py-2 bg-white rounded-md border border-gray-200 shadow-xl z-20 list-none dropdown-menu operator" :class="[{'show': visible.operator}]">
@ -303,8 +303,8 @@ export default {
onInput(evt) {
this.search = evt.target.value;
let option_url = this.selected_options[this.filter_index].url;
let option_url = this.selected_options.length > 0 ? this.selected_options[this.filter_index].url : '';
if (this.search) {
if (option_url.indexOf('?') === -1) {

View File

@ -875,7 +875,7 @@ export default {
if (this.multiple) {
this.selected = [];
} else {
this.selected = null;
this.selected = '';
}
return;
@ -892,7 +892,7 @@ export default {
}, this);
} else {
if (! options.find((option) => option == this.selected)) {
this.selected = null;
this.selected = '';
}
}
}

View File

@ -1094,7 +1094,7 @@ export default {
if (this.multiple) {
this.selected = [];
} else {
this.selected = null;
this.selected = '';
}
return;
@ -1111,7 +1111,7 @@ export default {
}, this);
} else {
if (! options.find((option) => option == this.selected)) {
this.selected = null;
this.selected = '';
}
}
},

View File

@ -229,6 +229,9 @@ export default {
// Bulk Action modal cancel
onCancelBulkAction() {
this.bulk_action.modal = false;
let documentClasses = document.body.classList;
documentClasses.remove('overflow-y-hidden', 'overflow-overlay', '-ml-4');
},
// Bulk Action Clear selected items

View File

@ -24,7 +24,7 @@
<x-form.group.select name="type" label="{{ trans_choice('general.types', 1) }}" :options="$types" :selected="config('general.types')" change="updateParentCategories" />
<x-form.group.select name="parent_id" label="{{ trans('general.parent') . ' ' . trans_choice('general.categories', 1) }}" :options="[]" not-required dynamicOptions="categoriesBasedTypes" sort-options="false" v-disabled="isParentCategoryDisabled" />
<x-form.group.select name="parent_id" label="{{ trans('general.parent') . ' ' . trans_choice('general.categories', 1) }}" :options="[]" not-required dynamicOptions="categoriesBasedTypes" sort-options="false" />
<x-form.input.hidden name="categories" value="{{ json_encode($categories) }}" />
</x-slot>