-
Notifications
You must be signed in to change notification settings - Fork 720
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add mydownloads side nav in learn plugin
- Loading branch information
1 parent
f93d479
commit e291161
Showing
4 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
kolibri/plugins/learn/assets/src/views/MyDownloadsSideNavEntry.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<template> | ||
|
||
<CoreMenuOption | ||
:label="coreString('myDownloadsLabel')" | ||
:link="url" | ||
icon="download" | ||
/> | ||
|
||
</template> | ||
|
||
|
||
<script> | ||
import { UserKinds, NavComponentSections } from 'kolibri.coreVue.vuex.constants'; | ||
import commonCoreStrings from 'kolibri.coreVue.mixins.commonCoreStrings'; | ||
import CoreMenuOption from 'kolibri.coreVue.components.CoreMenuOption'; | ||
import navComponents from 'kolibri.utils.navComponents'; | ||
import urls from 'kolibri.urls'; | ||
const component = { | ||
name: 'MyDownloadsSideNavEntry', | ||
components: { | ||
CoreMenuOption, | ||
}, | ||
mixins: [commonCoreStrings], | ||
computed: { | ||
url() { | ||
return urls['kolibri:kolibri.plugins.learn:my_downloads'](); | ||
}, | ||
}, | ||
role: UserKinds.LEARNER, | ||
priority: 10, | ||
section: NavComponentSections.ACCOUNT, | ||
}; | ||
navComponents.register(component); | ||
export default component; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters