- + { + this.removeDownloadRequest(this.contentNode.id).then(() => { this.removeConfirmationModalOpen = false; }); }, diff --git a/kolibri/plugins/learn/assets/src/views/LearnExamReportViewer.vue b/kolibri/plugins/learn/assets/src/views/LearnExamReportViewer.vue index 561ecc9c6ac..bfe3a49f68f 100644 --- a/kolibri/plugins/learn/assets/src/views/LearnExamReportViewer.vue +++ b/kolibri/plugins/learn/assets/src/views/LearnExamReportViewer.vue @@ -5,7 +5,8 @@ :appBarTitle="exam.title || ''" > -
+ +
state.core.session.full_name, userId: state => state.core.session.user_id, + loading: state => state.core.loading, }), homePageLink() { return { diff --git a/kolibri/plugins/learn/assets/src/views/LibraryPage/MoreNetworkDevices.vue b/kolibri/plugins/learn/assets/src/views/LibraryPage/MoreNetworkDevices.vue deleted file mode 100644 index 176509c5947..00000000000 --- a/kolibri/plugins/learn/assets/src/views/LibraryPage/MoreNetworkDevices.vue +++ /dev/null @@ -1,106 +0,0 @@ - - - - - - - diff --git a/kolibri/plugins/learn/assets/src/views/LibraryPage/OtherLibraries.vue b/kolibri/plugins/learn/assets/src/views/LibraryPage/OtherLibraries.vue new file mode 100644 index 00000000000..c6983f99b89 --- /dev/null +++ b/kolibri/plugins/learn/assets/src/views/LibraryPage/OtherLibraries.vue @@ -0,0 +1,245 @@ + + + + + + + diff --git a/kolibri/plugins/learn/assets/src/views/LibraryPage/PinnedNetworkResources.vue b/kolibri/plugins/learn/assets/src/views/LibraryPage/PinnedNetworkResources.vue deleted file mode 100644 index d1515ecc694..00000000000 --- a/kolibri/plugins/learn/assets/src/views/LibraryPage/PinnedNetworkResources.vue +++ /dev/null @@ -1,102 +0,0 @@ - - - - - - - diff --git a/kolibri/plugins/learn/assets/src/views/LibraryPage/UnPinnedDevices.vue b/kolibri/plugins/learn/assets/src/views/LibraryPage/UnPinnedDevices.vue index bceedc06490..a237db31b7f 100644 --- a/kolibri/plugins/learn/assets/src/views/LibraryPage/UnPinnedDevices.vue +++ b/kolibri/plugins/learn/assets/src/views/LibraryPage/UnPinnedDevices.vue @@ -71,6 +71,10 @@ type: Object, required: true, }, + channelCount: { + type: Number, + default: 0, + }, routeTo: { type: Object, required: true, @@ -90,9 +94,6 @@ textAlign: 'center', }; }, - channelCount() { - return this.device['total_count'] || 0; - }, deviceName() { return this.device.nickname || this.device.device_name; }, diff --git a/kolibri/plugins/learn/assets/src/views/LibraryPage/index.vue b/kolibri/plugins/learn/assets/src/views/LibraryPage/index.vue index 0b1ff594e7d..e56a4419d02 100644 --- a/kolibri/plugins/learn/assets/src/views/LibraryPage/index.vue +++ b/kolibri/plugins/learn/assets/src/views/LibraryPage/index.vue @@ -63,113 +63,12 @@ @setCardStyle="style => currentCardViewStyle = style" @setSidePanelMetadataContent="content => metadataSidePanelContent = content" /> - -
+ - - -

- {{ $tr('otherLibraries') }} -

-
- -
- - {{ $tr('searchingOtherLibrary') }} -    - - - - - - - - -    - {{ showingAllLibrariesLabel }} -    - -    - - - - - - - - -    - {{ $tr('noOtherLibraries') }} -    - - -
-
-
- -

- {{ $tr('pinned') }} -

- - - -

- {{ $tr('moreLibraries') }} -

- -
+ :injectedtr="injecttr" + />
@@ -247,13 +146,11 @@ diff --git a/kolibri/plugins/learn/assets/src/views/TopicsContentPage.vue b/kolibri/plugins/learn/assets/src/views/TopicsContentPage.vue index 46c7fcff04d..e80c144d962 100644 --- a/kolibri/plugins/learn/assets/src/views/TopicsContentPage.vue +++ b/kolibri/plugins/learn/assets/src/views/TopicsContentPage.vue @@ -23,7 +23,7 @@ :allowMarkComplete="allowMarkComplete" :contentKind="contentKind" :showBookmark="allowBookmark" - :showDownloadButton="allowRemoteDownload" + :showDownloadButton="showDownloadButton" :isDownloading="isDownloading" :downloadingLoaderTooltip="downloadRequestsTranslator.$tr('downloadStartedLabel')" data-test="learningActivityBar" @@ -129,10 +129,10 @@ @@ -154,7 +154,7 @@