Skip to content

Commit

Permalink
feat: add export course tags menu
Browse files Browse the repository at this point in the history
  • Loading branch information
rpenido committed Feb 9, 2024
1 parent 1555e9f commit db898a8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/header/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,14 @@ const messages = defineMessages({
},
'header.links.export': {
id: 'header.links.export',
defaultMessage: 'Export',
defaultMessage: 'Export Course',
description: 'Link to Studio Export page',
},
'header.links.exportTags': {
id: 'header.links.exportTags',
defaultMessage: 'Export Tags',
description: 'Download course content tags as CSV',
},
'header.links.checklists': {
id: 'header.links.checklists',
defaultMessage: 'Checklists',
Expand Down
7 changes: 6 additions & 1 deletion src/header/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,12 @@ export const getToolsMenuItems = ({ studioBaseUrl, courseId, intl }) => ([
{
href: `${studioBaseUrl}/export/${courseId}`,
title: intl.formatMessage(messages['header.links.export']),
}, {
},
{
href: `${studioBaseUrl}/api/content_tagging/v1/object_tags/${courseId}/export/`,
title: intl.formatMessage(messages['header.links.exportTags']),
},
{
href: `${studioBaseUrl}/checklists/${courseId}`,
title: intl.formatMessage(messages['header.links.checklists']),
},
Expand Down

0 comments on commit db898a8

Please sign in to comment.