Skip to content

Commit

Permalink
shopfloor_mobile: ensure searchbar focus doesn't remove user popups
Browse files Browse the repository at this point in the history
  • Loading branch information
JuMiSanAr committed Nov 7, 2023
1 parent 49f197b commit 1f36949
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const ClusterPicking = {
v-if="state.on_scan"
v-on:found="on_scan"
:input_placeholder="search_input_placeholder"
:autofocus="!screen_info.user_popup"
/>
<get-work
v-if="state_is('start')"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const LocationContentTransfer = {
v-if="state.on_scan"
v-on:found="on_scan"
:input_placeholder="search_input_placeholder"
:autofocus="!screen_info.user_popup"
/>
<template v-if="state_in(['scan_location']) && state.data.location">
<item-detail-card
Expand Down
15 changes: 13 additions & 2 deletions shopfloor_mobile/static/wms/src/scenario/single_pack_transfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,19 @@ const SinglePackTransfer = {
<template v-slot:header>
<state-display-info :info="state.display_info" v-if="state.display_info"/>
</template>
<searchbar v-if="state_is(initial_state_key)" v-on:found="on_scan" :input_placeholder="search_input_placeholder"></searchbar>
<searchbar v-if="state_is('scan_location')" v-on:found="on_scan" :input_placeholder="search_input_placeholder" :input_data_type="'location'"></searchbar>
<searchbar
v-if="state_is(initial_state_key)"
v-on:found="on_scan"
:autofocus="!screen_info.user_popup"
:input_placeholder="search_input_placeholder"
></searchbar>
<searchbar
v-if="state_is('scan_location')"
v-on:found="on_scan"
:autofocus="!screen_info.user_popup"
:input_placeholder="search_input_placeholder"
:input_data_type="'location'"
></searchbar>
<div v-if="state.key != 'show_completion_info' && _.result(state, 'data.picking')">
<item-detail-card
:key="make_state_component_key(['package', state.data.id])"
Expand Down
1 change: 1 addition & 0 deletions shopfloor_mobile/static/wms/src/scenario/zone_picking.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const template_mobile = `
v-if="state.on_scan"
v-on:found="on_scan"
:input_placeholder="search_input_placeholder"
:autofocus="!screen_info.user_popup"
/>
<div v-if="state_is('scan_location')">
Expand Down

0 comments on commit 1f36949

Please sign in to comment.