Skip to content

Commit ab330e7

Browse files
committed
Combine export size
1 parent 6fb0141 commit ab330e7

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

kolibri/plugins/management/assets/src/views/manage-content-page/wizard-export.vue

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
<template v-if="!drivesLoading">
1212
<div class="modal-message">
1313
<p>
14-
{{ $tr('exportPromptPrefix', { numChannels: allChannels.length }) }}
15-
({{ exportContentSize }})
14+
{{ $tr('exportPrompt', { numChannels: allChannels.length, exportSize }) }}
1615
</p>
1716
<drive-list
1817
:value="selectedDrive"
@@ -65,12 +64,12 @@
6564
available: 'available',
6665
cancel: 'Cancel',
6766
export: 'Export',
68-
exportPromptPrefix:
69-
'You are about to export {numChannels, number} {numChannels, plural, one {channel} other {channels}}',
67+
exportPrompt:
68+
'You are about to export {numChannels, number} {numChannels, plural, one {channel} other {channels}} ({exportSize})',
7069
notWritable: 'Not writable',
7170
refresh: 'Refresh',
7271
title: 'Export to where?',
73-
waitForTotalSize: 'Calculating total size...',
72+
waitForTotalSize: 'Calculating size...',
7473
},
7574
components: {
7675
coreModal,
@@ -86,7 +85,7 @@
8685
canSubmit() {
8786
return !this.drivesLoading && !this.wizardState.busy && this.selectedDrive !== '';
8887
},
89-
exportContentSize() {
88+
exportSize() {
9089
const allChannelsHaveStats = this.allChannels.reduce((flag, channel) => {
9190
return flag && Boolean(this.channelsWithStats[channel.id]);
9291
}, true);

0 commit comments

Comments
 (0)