Skip to content

Commit

Permalink
Merge pull request #265 from Polatouche/master
Browse files Browse the repository at this point in the history
Fix dropdown menu in bs-element component
  • Loading branch information
nkmdev authored Feb 28, 2019
2 parents 02b2dce + 453a730 commit 04a62e6
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .angulardoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"repoId": "a13b5f05-f1dd-4d04-8f3d-e764621ce5c2",
"lastSync": 0
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# compiled output
/tmp
/out-tsc
/dist

# dependencies
/node_modules
Expand Down
6 changes: 3 additions & 3 deletions src/app/layout/bs-element/bs-element.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ <h1>Thumbnails</h1>
<h1>Dropdown menus</h1>
<hr>
</div>
<div class="dropdown theme-dropdown clearfix">
<button class="btn btn-secondary">
<div class="dropdown theme-dropdown clearfix" ngbDropdown>
<button class="btn btn-secondary" ngbDropdownToggle>
Dropdown
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenu1">
<div class="dropdown-menu" aria-labelledby="dropdownMenu1" ngbDropdownMenu>
<a class="dropdown-item" href="javascript:void(0)">Action</a>
<a class="dropdown-item" href="javascript:void(0)">Another action</a>
<a class="dropdown-item" href="javascript:void(0)">Something else here</a>
Expand Down
3 changes: 2 additions & 1 deletion src/app/layout/bs-element/bs-element.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import { CommonModule } from '@angular/common';
import { BsElementRoutingModule } from './bs-element-routing.module';
import { BsElementComponent } from './bs-element.component';
import { PageHeaderModule } from './../../shared';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';

@NgModule({
imports: [CommonModule, BsElementRoutingModule, PageHeaderModule],
imports: [CommonModule, BsElementRoutingModule, PageHeaderModule, NgbModule],
declarations: [BsElementComponent]
})
export class BsElementModule {}
2 changes: 1 addition & 1 deletion src/app/layout/components/sidebar/sidebar.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
</div>
</div>
<div class="toggle-button" [ngClass]="{collapsed: collapsed}" (click)="toggleCollapsed()">
<i class="fa fa-fw fa-angle-double-left"></i>&nbsp;
<i class="fa fa-fw fa-angle-double-{{collapsed?'right':'left'}}"></i>&nbsp;
<span>{{ 'Collapse Sidebar' | translate }}</span>
</div>
</nav>

0 comments on commit 04a62e6

Please sign in to comment.