Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,7 @@ http://<YOUR_ADDRESS>:3001/auth/login

```

MC-WEB-CONSOLE has been successfully deployed if the screen below is visible during the access to the web of the endpoint above. Login users can log in as users created by MC-IAM-MANAGER.

![image.png](https://private-user-images.githubusercontent.com/78469943/584510105-4f707fac-9ee6-4f68-91a1-8d6e51815b60.png)
MC-WEB-CONSOLE has been successfully deployed if the login screen is displayed when accessing the endpoint above. Login users can log in as users created by MC-IAM-MANAGER.

---

Expand Down
4 changes: 2 additions & 2 deletions front/assets/js/partials/layout/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function generateMenuHTML(menus) {
html += ` </li>`
if (category.menus && category.menus.length > 0) {
category.menus.forEach(menu => {
if (menu.menus === null){
if (!menu.menus || menu.menus.length === 0){
html +=`<li class="nav-item">`
html +=`<a class="nav-link" ${stringToBool(menu.isAction) ? `href="/webconsole/${title.id}/${category.id}/${menu.id}"` : ""}" name="sidebar_${menu.id}">`
html +=`<span class="nav-link-icon d-md-none d-lg-inline-block">${iconsArr[menu.id] ? iconsArr[menu.id] : iconsArr["undefined"] }</span>`; // svg
Expand All @@ -52,7 +52,7 @@ function generateMenuHTML(menus) {
html +=`</li>`
}else {
html += `<li class="nav-item box-link dropdown" name="sidebar_${menu.id}">`;
html += `<div class="nav-link dropdown-toggle" name="sidebar_${menu.id}" href="${stringToBool(menu.isAction) ? `/webconsole/${title.id}/${category.id}/${menu.id}` : "#navbar-extra"}" data-bs-toggle="dropdown" data-bs-auto-close="false" role="button" aria-expanded="false">`;
html += `<div class="nav-link dropdown-toggle" name="sidebar_${menu.id}" href="${stringToBool(menu.isAction) ? `/webconsole/${title.id}/${category.id}/${menu.id}` : "#navbar-extra"}" role="button" aria-expanded="false">`;
html += `<span class="nav-link-icon d-md-none d-lg-inline-block">${iconsArr[menu.id] ? iconsArr[menu.id] : iconsArr["undefined"] }</span>`; // svg
html += `<span class="nav-link-title">${menu.displayName}</span>`;
html += `</div>`;
Expand Down
Loading