Implement type-to-search functionality in the 'Move to different result' modal [SCI-9187]

This commit is contained in:
Giga Chubinidze 2023-09-06 16:12:31 +04:00
parent cb023cd9c8
commit 76b7c45021
2 changed files with 24 additions and 6 deletions

View file

@ -13,12 +13,27 @@
{{ i18n.t(`protocols.steps.modals.move_element.${parent_type}.targets_label`) }} {{ i18n.t(`protocols.steps.modals.move_element.${parent_type}.targets_label`) }}
</label> </label>
<div class="w-full"> <div class="w-full">
<Select <SelectSearch
:value="target" :value="target"
:options="targetOptions"
v-bind:disabled="false"
@change="setTarget" @change="setTarget"
></Select> :options="targetOptions"
:isLoading="false"
:placeholder="
i18n.t(
'my_modules.results.move_modal.search_placeholder'
)
"
:no-options-placeholder="
i18n.t(
'my_modules.results.move_modal.no_options_placeholder'
)
"
:searchPlaceholder="
i18n.t(
'my_modules.results.move_modal.search_placeholder'
)
"
/>
</div> </div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
@ -31,7 +46,7 @@
</template> </template>
<script> <script>
import axios from '../../../../packs/custom_axios.js'; import axios from '../../../../packs/custom_axios.js';
import Select from "../../select.vue"; import SelectSearch from "../../select_search.vue";
export default { export default {
name: 'moveElementModal', name: 'moveElementModal',
@ -52,7 +67,7 @@
} }
}, },
components: { components: {
Select SelectSearch
}, },
mounted() { mounted() {
$(this.$refs.modal).modal('show'); $(this.$refs.modal).modal('show');

View file

@ -1305,6 +1305,9 @@ en:
rearrange: "Rearrange" rearrange: "Rearrange"
archive: "Archive" archive: "Archive"
duplicate: "Duplicate" duplicate: "Duplicate"
move_modal:
search_placeholder: "Enter result name"
no_options_placeholder: "No results available to select"
archive_results: archive_results:
preview: "View" preview: "View"
activities: activities: