Skip to content

Commit 3625f6f

Browse files
committed
Add missing mappings for h5p kind.
1 parent a82e78b commit 3625f6f

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

contentcuration/contentcuration/frontend/shared/constants.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export const kindToIconMap = {
5858
channel: 'apps',
5959
document: 'description',
6060
exercise: 'star',
61+
h5p: 'widgets',
6162
html5: 'widgets',
6263
image: 'image',
6364
slideshow: 'photo_library',
@@ -205,6 +206,7 @@ export const AccessibilityCategoriesMap = {
205206
video: ['CAPTIONS_SUBTITLES', 'AUDIO_DESCRIPTION', 'SIGN_LANGUAGE'],
206207
exercise: ['ALT_TEXT'],
207208
html5: ['ALT_TEXT', 'HIGH_CONTRAST'],
209+
h5p: ['ALT_TEXT', 'HIGH_CONTRAST'],
208210
audio: ['CAPTIONS_SUBTITLES'],
209211
};
210212

contentcuration/contentcuration/frontend/shared/views/ContentNodeIcon.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@
8484
return this.$tr('exercise');
8585
case 'document':
8686
return this.$tr('document');
87+
case 'h5p':
88+
return this.$tr('html5');
8789
case 'html5':
8890
return this.$tr('html5');
8991
default:

contentcuration/contentcuration/frontend/shared/vuetify/theme.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export default function theme() {
2020
audio: '#f06292',
2121
document: '#ff3d00',
2222
exercise: '#4db6ac',
23+
h5p: '#ff8f00',
2324
html5: '#ff8f00',
2425
zim: '#ff8f00',
2526
slideshow: '#4ece90',

0 commit comments

Comments
 (0)