Merge pull request #6149 from G-Chubinidze/gc_SCI_9187

Implement type-to-search functionality in the "Move to different results" modal [SCI-9187]
This commit is contained in:
Martin Artnik 2023-09-06 14:31:05 +02:00 committed by GitHub
commit 1e49cc5608
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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`) }}
</label>
<div class="w-full">
<Select
<SelectSearch
:value="target"
:options="targetOptions"
v-bind:disabled="false"
@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 class="modal-footer">
@ -31,7 +46,7 @@
</template>
<script>
import axios from '../../../../packs/custom_axios.js';
import Select from "../../select.vue";
import SelectSearch from "../../select_search.vue";
export default {
name: 'moveElementModal',
@ -52,7 +67,7 @@
}
},
components: {
Select
SelectSearch
},
mounted() {
$(this.$refs.modal).modal('show');

View file

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