Skip to content

Commit

Permalink
Merge pull request #11756 from rtibbles/soud_o_facilities
Browse files Browse the repository at this point in the history
Prevent learner only devices from being shown as an import source when creating one.
  • Loading branch information
rtibbles authored Jan 19, 2024
2 parents 1a051d4 + 8726d0a commit e80feb9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
@cancel="$emit('cancel')"
>
<template>
<p v-if="filterLODAvailable">
<!-- <p v-if="filterLODAvailable">
{{ $tr('lodSubHeader') }}
</p>
</p> -->
<p v-if="hasFetched && !devices.length">
{{ $tr('noDeviceText') }}
</p>
Expand Down Expand Up @@ -387,6 +387,9 @@
context:
'Error message that displays when an admin attempts to find a device, but the device is not found.',
},
// TODO Update this string to be more specific that it is 0.15 or greater
// once this is done, reinstate the $tr('lodSubHeader') in the template
// eslint-disable-next-line kolibri/vue-no-unused-translations
lodSubHeader: {
message: 'Select a device with Kolibri version 0.15 to import learner user accounts',
context:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
/>
<SelectDeviceModalGroup
v-if="showSelectAddressModal"
:filterLODAvailable="true"
:filterByFacilityCanSignUp="selected === Options.JOIN ? true : null"
@cancel="showSelectAddressModal = false"
@submit="handleContinueImport"
Expand Down

0 comments on commit e80feb9

Please sign in to comment.