Skip to content

Commit

Permalink
Merge 2.1.1 fix into master
Browse files Browse the repository at this point in the history
  • Loading branch information
machuga committed Jan 23, 2018
2 parents e587b60 + aeeb538 commit 8607ba7
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion build/bundle.js

Large diffs are not rendered by default.

15 changes: 7 additions & 8 deletions public/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,12 +325,11 @@ export default function() {
});
}

switch (window.location.pathname) {
case '/admin':
return mainAdminPanel();
break;
case '/admin/locale':
return localeAdminPanel();
break;
}
var path = window.location.pathname;

if (path.endsWith('/admin')) {
return mainAdminPanel();
} else if (path.endsWith('/admin/locale')) {
return localeAdminPanel();
}
}
2 changes: 1 addition & 1 deletion templates/server/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default ({ stylesheetTag, baseURL }) => `
</head>
<body>
${header}
${header(baseURL)}
<main class="container app-container">
<form action="">
Expand Down
2 changes: 1 addition & 1 deletion templates/server/locale.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default ({ stylesheetTag, baseURL }) => `
</head>
<body>
${header}
${header(baseURL)}
<main class="container app-container">
<div class="row">
Expand Down
6 changes: 3 additions & 3 deletions templates/utils/header.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
export default `
export default baseURL => `
<header class="site-header">
<nav class="navbar navbar-default" role="navigation">
<div class="container">
<div class="navbar-header">
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#navbar-collapse"><span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span>
</button>
<span>
<h1 class="navbar-brand"><a href="/admin"><span>Auth0</span> <div class="product-name">Account Linking Extension</div></a></h1>
<h1 class="navbar-brand"><a href="${baseURL}/admin"><span>Auth0</span> <div class="product-name">Account Linking Extension</div></a></h1>
</span>
</div>
<div class="collapse navbar-collapse" id="navbar-collapse">
Expand All @@ -17,7 +17,7 @@ export default `
<img src="" alt="" class="avatar">
<i class="icon-budicon-460"></i></span>
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
<li><a href="/admin/locale" target="_blank">Manage locales</a></li>
<li><a href="${baseURL}/admin/locale" target="_blank">Manage locales</a></li>
<li><a href="https://github.com/auth0-extensions/auth0-account-link-extension/issues/new" target="_blank">Report an issue</a></li>
<li class="separator"></li>
<li><a href="#" id="logout-btn">Logout</a>
Expand Down

0 comments on commit 8607ba7

Please sign in to comment.