TNL-7191 - We didn’t fully protect against sequences with no units. The next/previous buttons now check whether there is a unit ID and construct a URL without if one doesn’t exist. When we load a sequence without units, we now show a message to the user so the page doesn’t look broken.
27 lines
978 B
JavaScript
27 lines
978 B
JavaScript
import { defineMessages } from '@edx/frontend-platform/i18n';
|
|
|
|
const messages = defineMessages({
|
|
'learn.loading.content.lock': {
|
|
id: 'learn.loading.content.lock',
|
|
defaultMessage: 'Loading locked content messaging...',
|
|
description: 'Message shown when an interface about locked content is being loaded',
|
|
},
|
|
'learn.loading.learning.sequence': {
|
|
id: 'learn.loading.learning.sequence',
|
|
defaultMessage: 'Loading learning sequence...',
|
|
description: 'Message when learning sequence is being loaded',
|
|
},
|
|
'learn.course.load.failure': {
|
|
id: 'learn.course.load.failure',
|
|
defaultMessage: 'There was an error loading this course.',
|
|
description: 'Message when a course fails to load',
|
|
},
|
|
'learn.sequence.no.content': {
|
|
id: 'learn.sequence.no.content',
|
|
defaultMessage: 'There is no content here.',
|
|
description: 'Message shown when there is no content to show a user inside a learning sequence.',
|
|
},
|
|
});
|
|
|
|
export default messages;
|