|
|
@ -2,7 +2,7 @@ |
|
|
<NcModal id="global-search" |
|
|
<NcModal id="global-search" |
|
|
ref="globalSearchModal" |
|
|
ref="globalSearchModal" |
|
|
:name="t('core', 'Global search')" |
|
|
:name="t('core', 'Global search')" |
|
|
:show.sync="isVisible" |
|
|
|
|
|
|
|
|
:show.sync="internalIsVisible" |
|
|
:clear-view-delay="0" |
|
|
:clear-view-delay="0" |
|
|
:title="t('Global search')" |
|
|
:title="t('Global search')" |
|
|
@close="closeModal"> |
|
|
@close="closeModal"> |
|
|
@ -200,6 +200,7 @@ export default { |
|
|
contacts: [], |
|
|
contacts: [], |
|
|
debouncedFind: debounce(this.find, 300), |
|
|
debouncedFind: debounce(this.find, 300), |
|
|
showDateRangeModal: false, |
|
|
showDateRangeModal: false, |
|
|
|
|
|
internalIsVisible: false, |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
@ -224,12 +225,17 @@ export default { |
|
|
}, |
|
|
}, |
|
|
watch: { |
|
|
watch: { |
|
|
isVisible(value) { |
|
|
isVisible(value) { |
|
|
|
|
|
this.internalIsVisible = value |
|
|
|
|
|
}, |
|
|
|
|
|
internalIsVisible(value) { |
|
|
|
|
|
this.$emit('update:isVisible', value) |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
if (value) { |
|
|
if (value) { |
|
|
this.focusInput() |
|
|
this.focusInput() |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
|
getProviders().then((providers) => { |
|
|
getProviders().then((providers) => { |
|
|
@ -519,7 +525,7 @@ export default { |
|
|
this.$refs.searchInput.$el.children[0].children[0].focus() |
|
|
this.$refs.searchInput.$el.children[0].children[0].focus() |
|
|
}, |
|
|
}, |
|
|
closeModal() { |
|
|
closeModal() { |
|
|
this.$refs.globalSearchModal.close() |
|
|
|
|
|
|
|
|
this.internalIsVisible = false |
|
|
this.searchQuery = '' |
|
|
this.searchQuery = '' |
|
|
}, |
|
|
}, |
|
|
supportFiltering() { |
|
|
supportFiltering() { |
|
|
|