-
{{ coreString('lessonsLabel') }} : {{ currentLesson.title }}
+
{{ coreString('lessonsLabel') }} : {{ currentLesson.title }}
{{ $tr('sizeLabel') }} : {{ bytesForHumans(currentLesson.size) }}
- {}"
/>
-
-
+
+
-
+
- {{ bytesForHumans(lesson.files[0].file_size) }}
+ {{ bytesForHumans(lesson.files[0].file_size) }}
-
-
-
+
{ }"
+ @click="() => {}"
/>
-
+
@@ -107,79 +101,79 @@
import LearningActivityIcon from 'kolibri-common/components/ResourceDisplayAndSearch/LearningActivityIcon.vue';
import bytesForHumans from 'kolibri/uiText/bytesForHumans';
import { searchAndFilterStrings } from 'kolibri-common/strings/searchAndFilterStrings';
-
+
export default {
- name:"SelectedResources",
- components:{
+ name: 'SelectedResources',
+ components: {
DragSortWidget,
DragContainer,
DragHandle,
Draggable,
- LearningActivityIcon
+ LearningActivityIcon,
},
- mixins:[commonCoreStrings],
- setup(){
+ mixins: [commonCoreStrings],
+ setup() {
const { upLabel$, downLabel$ } = searchAndFilterStrings;
return {
upLabel$,
- downLabel$
+ downLabel$,
};
},
- props:{
- resourceList:{
+ props: {
+ resourceList: {
type: Array,
- required:true
+ required: true,
+ },
+ currentLesson: {
+ type: Object,
+ required: true,
},
- currentLesson:{
- type:Object,
- required:true
+ loading: {
+ type: Boolean,
+ required: true,
},
- loading:{
- type:Boolean,
- required:true
- }
},
- computed:{
- lessonOrderListButtonBorder(){
+ computed: {
+ lessonOrderListButtonBorder() {
return {
- borderBottom: `1px solid ${this.$themePalette.grey.v_200}`,
- height:`auto`,
- width:`100%`
+ borderBottom: `1px solid ${this.$themePalette.grey.v_200}`,
+ height: `auto`,
+ width: `100%`,
};
},
},
- methods:{
- bytesForHumans
+ methods: {
+ bytesForHumans,
},
- $trs:{
- sizeLabel:{
+ $trs: {
+ sizeLabel: {
message: 'Size',
- context: 'Size of the lesson'
+ context: 'Size of the lesson',
},
- }
- }
+ },
+ };
-
\ No newline at end of file
+
+
diff --git a/packages/kolibri-common/strings/searchAndFilterStrings.js b/packages/kolibri-common/strings/searchAndFilterStrings.js
index 0c7dab0c257..7cb339ddf7a 100644
--- a/packages/kolibri-common/strings/searchAndFilterStrings.js
+++ b/packages/kolibri-common/strings/searchAndFilterStrings.js
@@ -40,7 +40,8 @@ export const searchAndFilterStrings = createTranslator('SearchAndFilterStrings',
context: 'Button to save resources in a lesson',
},
numberOfSelectedResource: {
- message: '{count, number, integer} {count, plural, one {resource selected} other {resources selected}}',
- context:'Indicates the number of resources selected'
- }
+ message:
+ '{count, number, integer} {count, plural, one {resource selected} other {resources selected}}',
+ context: 'Indicates the number of resources selected',
+ },
});