File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1616 vm . showActions = showActions ;
1717 vm . title = $state . current . data . title ;
1818 vm . showSimpleToast = showSimpleToast ;
19+ vm . toggleRightSidebar = toggleRightSidebar ;
1920
2021 navService
2122 . loadAllItems ( )
2223 . then ( function ( menuItems ) {
2324 vm . menuItems = [ ] . concat ( menuItems ) ;
2425 } ) ;
2526
27+ function toggleRightSidebar ( ) {
28+ $mdSidenav ( 'right' ) . toggle ( ) ;
29+ }
30+
2631 function toggleItemsList ( ) {
2732 var pending = $mdBottomSheet . hide ( ) || $q . when ( true ) ;
2833
6873 $mdToast . simple ( )
6974 . content ( title )
7075 . hideDelay ( 2000 )
71- . position ( 'top right' )
76+ . position ( 'bottom right' )
7277 ) ;
7378 }
7479 }
Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ <h1>AMD</h1>
3333 < i class ="material-icons "> notifications</ i >
3434 < span class ="notifications-label "> 7</ span >
3535 </ md-button >
36- < md-button hide-sm class ="toolbar-button " aria-label ="Settings ">
37- < i class ="material-icons "> settings </ i >
36+ < md-button hide-sm class ="toolbar-button " aria-label ="Settings " ng-click =" vm.toggleRightSidebar() " >
37+ < i class ="material-icons "> menu </ i >
3838 </ md-button >
3939 < md-button hide-gt-sm ng-click ="vm.toggleItemsList() " aria-label ="Menu ">
4040 < i class ="material-icons "> menu</ i >
@@ -46,7 +46,7 @@ <h1>AMD</h1>
4646 </ md-content >
4747</ div >
4848
49- < md-sidenav md-is-locked-open =" $mdMedia('gt-sm') " md- component-id ="right "
49+ < md-sidenav md-component-id ="right "
5050 class ="md-whiteframe-z2 md-sidenav-right ">
5151 < md-toolbar layout ="row ">
5252 < md-toolbar flex ="80 " class ="md-warn " layout ="row " layout-align ="center center ">
You can’t perform that action at this time.
0 commit comments