Skip to content

Commit

Permalink
Fixed bug on icon
Browse files Browse the repository at this point in the history
Avoid errors:
fa fa fa-[icon-name]
fa fas fa-[icon-name]
fa fab fa-[icon-name]
  • Loading branch information
rubensrocha authored Jun 10, 2020
1 parent 90d7b92 commit f5d39c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Views/Menu/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ function menu() {
maxDepth: 2,
json: response.data,
contentCallback: (item) => {
return `<i class="fa ${item.icon}"></i>&nbsp;<strong>${item.title}</strong>&nbsp;&nbsp;&nbsp;<a href="<?= base_url() ?>/${item.route}" class="dd-nodrag">${item.route}</a>
return `<i class="${item.icon}"></i>&nbsp;<strong>${item.title}</strong>&nbsp;&nbsp;&nbsp;<a href="<?= base_url() ?>/${item.route}" class="dd-nodrag">${item.route}</a>
<span class="float-right dd-nodrag">
<button data-id="${item.id}" id="btn-edit" class="btn btn-primary btn-xs"><span class="fa fa-fw fa-pencil-alt"></span></button>
<button data-id="${item.id}" id="btn-delete" class="btn btn-danger btn-xs"><span class="fa fa-fw fa-trash"></span></button>
Expand Down

0 comments on commit f5d39c1

Please sign in to comment.