mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 10:14:17 +08:00
Implement type-to-search functionality in the 'Move to different result' modal [SCI-9187]
This commit is contained in:
parent
cb023cd9c8
commit
76b7c45021
2 changed files with 24 additions and 6 deletions
|
@ -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');
|
||||
|
|
|
@ -1305,6 +1305,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:
|
||||
|
|
Loading…
Reference in a new issue