Skip to content

Commit 38d7948

Browse files
committed
perf(texteditor): use placeholder into supportedFileTypes string
1 parent 15391d3 commit 38d7948

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contentcuration/contentcuration/frontend/shared/views/TipTapEditor/TipTapEditor/TipTapEditorStrings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ const MESSAGES = {
224224
context: 'Accessibility label for the button that opens the file picker.',
225225
},
226226
supportedFileTypes: {
227-
message: 'Supported file types: ',
227+
message: 'Supported file types: { extensions }',
228228
context: 'A list of supported image file formats.',
229229
},
230230
removeImage: {

contentcuration/contentcuration/frontend/shared/views/TipTapEditor/TipTapEditor/components/image/ImageUploadModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@
216216
const extensions = ACCEPTED_MIME_TYPES.map(type =>
217217
type.replace('image/', '').replace('svg+xml', 'svg'),
218218
);
219-
return supportedFileTypes$() + extensions.join(', ');
219+
return supportedFileTypes$({ extensions: extensions.join(', ') });
220220
});
221221
222222
const instance = getCurrentInstance();

0 commit comments

Comments
 (0)