File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ Environment Variables
2525* ``SITE_NAME `` - The user-facing name of the site, used as `alt ` text on the logo in the header.
2626 Defaults to "localhost" in development.
2727* ``LOGO_URL `` - The URL of the site's logo. This logo is displayed in the header.
28+ * ``ORDER_HISTORY_URL `` - The URL of the order history page.
2829* ``AUTHN_MINIMAL_HEADER `` - A boolean flag which hides the main menu, user menu, and logged-out
2930 menu items when truthy. This is intended to be used in micro-frontends like
3031 frontend-app-authentication in which these menus are considered distractions from the user's task.
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ ensureConfig([
2121 'LOGIN_URL' ,
2222 'SITE_NAME' ,
2323 'LOGO_URL' ,
24+ 'ORDER_HISTORY_URL' ,
2425] , 'Header component' ) ;
2526
2627subscribe ( APP_CONFIG_INITIALIZED , ( ) => {
@@ -56,6 +57,11 @@ function Header({ intl }) {
5657 href : `${ config . LMS_BASE_URL } /account/settings` ,
5758 content : intl . formatMessage ( messages [ 'header.user.menu.account.settings' ] ) ,
5859 } ,
60+ {
61+ type : 'item' ,
62+ href : config . ORDER_HISTORY_URL ,
63+ content : intl . formatMessage ( messages [ 'header.user.menu.order.history' ] ) ,
64+ } ,
5965 {
6066 type : 'item' ,
6167 href : config . LOGOUT_URL ,
You can’t perform that action at this time.
0 commit comments