fix: Use the updated slots syntax in ResourceLocator (no-changelog) (#4663)

Co-authored-by: Alex Grozav <alex@grozav.com>
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2022-11-21 15:28:24 +01:00 committed by GitHub
parent 5518bd95c7
commit a9bdc0bbfe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View file

@ -112,7 +112,7 @@
[$style.isReverse]: showResourceDropdown,
}"
/>
</template>
</template>
</n8n-input>
</div>
</template>

View file

@ -11,8 +11,9 @@
</div>
<div :class="$style.searchInput" v-if="filterable && !errorView" @keydown="onKeyDown">
<n8n-input size="medium" :value="filter" :clearable="true" @input="onFilterInput" @blur="onSearchBlur" ref="search" :placeholder="$locale.baseText('resourceLocator.search.placeholder')">
<!-- eslint-disable-next-line vue/no-deprecated-slot-attribute -->
<font-awesome-icon :class="$style.searchIcon" icon="search" slot="prefix" />
<template #prefix>
<font-awesome-icon :class="$style.searchIcon" icon="search" />
</template>
</n8n-input>
</div>
<div v-if="filterRequired && !filter && !errorView && !loading" :class="$style.searchRequired">
@ -49,8 +50,9 @@
</div>
</div>
</div>
<!-- eslint-disable-next-line vue/no-deprecated-slot-attribute -->
<slot slot="reference" />
<template #reference>
<slot />
</template>
</n8n-popover>
</template>