Skip to content

Commit b9263f7

Browse files
authored
Merge pull request #1969 from jonboiser/preview-modal-title
Fix modal title on import preview modal
2 parents 0b14d66 + 70aea64 commit b9263f7

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

kolibri/plugins/management/assets/src/views/manage-content-page/wizards/import-preview.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22

33
<core-modal
4-
:title="$tr('title')"
4+
:title="modalTitle"
55
:enableBgClickCancel="false"
66
@cancel="cancel"
77
@enter="submit"
@@ -72,6 +72,13 @@
7272
kButton,
7373
},
7474
computed: {
75+
modalTitle() {
76+
if (this.importSource === 'local') {
77+
return this.$tr('localImportTitle');
78+
} else {
79+
return this.$tr('remoteImportTitle');
80+
}
81+
},
7582
localImportPrompt() {
7683
return this.$tr('localImportPrompt', {
7784
numChannels: this.channelList.length,
@@ -127,8 +134,7 @@
127134
'You are about to import {numChannels, number} {numChannels, plural, one {Channel} other {Channels}} on {driveName}',
128135
localImportTitle: 'Import from local drive',
129136
remoteImportPrompt: 'You are about to import 1 channel',
130-
remoteImporttitle: 'Import from internet',
131-
title: 'Import from local drive',
137+
remoteImportTitle: 'Import from internet',
132138
},
133139
};
134140

0 commit comments

Comments
 (0)