MCPcopy Create free account
hub / github.com/codecombat/codecombat / getIntroContentNameWithLabel

Function getIntroContentNameWithLabel

ozaria/site/common/ozariaUtils.js:360–368  ·  view source on GitHub ↗
(introContent)

Source from the content-addressed store, hash-verified

358// OLD TEACHER DASHBOARD
359// Only for cinematics/interactives
360export function getIntroContentNameWithLabel (introContent) {
361 if (!introContent) {
362 return
363 }
364 const displayName = introContent.displayName || '...'
365 if (introContent.type) {
366 return internationalizeContentType(introContent.type) + ': ' + displayName
367 }
368}
369
370// Used for new teacher dashboard, contentData is the list-item returned by game-content APIs
371// i.e. levels broken down into practice/cinematics/interactives etc

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected