Skip to content

Commit

Permalink
[pre-commit.ci lite] apply automatic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci-lite[bot] authored Aug 27, 2024
1 parent 78de67e commit 6c4e807
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<div>
<ChannelThumbnail
:thumbnail="contentNode.thumbnail"
style="width:100px"
style="width: 100px"
/>
</div>
</template>
Expand All @@ -39,19 +39,19 @@
export default {
name: 'AccessibleChannelCard',
components:{
components: {
ChannelThumbnail,
},
props:{
props: {
to: {
type: Object,
required: true,
},
title:{
title: {
type: String,
required: true,
},
headingLevel:{
headingLevel: {
type: Number,
required: false,
default: 2,
Expand All @@ -61,17 +61,17 @@
required: true,
},
},
computed:{
numberOfResources(){
computed: {
numberOfResources() {
return `${this.contentNode.num_coach_contents} ${this.$tr('resources')}`;
}
},
},
$trs: {
resources: {
message: 'Resources',
context: 'Number of resources in a channel',
},
}
}
},
};
</script>
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@
const { genContentLinkBackLinkCurrentPage } = useContentLink();
return {
layoutSpan,
genContentLinkBackLinkCurrentPage
genContentLinkBackLinkCurrentPage,
};
},
props:{
props: {
contentNode: {
type: Array,
required: true,
},
}
}
},
};
</script>
</script>
6 changes: 2 additions & 4 deletions kolibri/plugins/learn/assets/src/views/LibraryPage/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@
:injectedtr="injecttr"
/>

<HandleAccessibleChannelCard
:contentNode="rootNodes"
/>
<HandleAccessibleChannelCard :contentNode="rootNodes" />
</div>

<SearchResultsGrid
Expand Down Expand Up @@ -223,7 +221,7 @@
LearnAppBarPage,
OtherLibraries,
PostSetupModalGroup,
HandleAccessibleChannelCard
HandleAccessibleChannelCard,
},
mixins: [commonLearnStrings, commonCoreStrings],
setup(props) {
Expand Down

0 comments on commit 6c4e807

Please sign in to comment.