mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 00:37:53 +00:00
Polymer 1.0: Bugfix - menu button works again
This commit is contained in:
parent
1cdd5db29f
commit
26837ae8d3
@ -271,6 +271,7 @@
|
||||
|
||||
listeners: {
|
||||
'menu.core-select': 'menuSelect',
|
||||
'open-menu': 'openDrawer',
|
||||
},
|
||||
|
||||
stateStoreChanged: function(stateStore) {
|
||||
@ -314,6 +315,10 @@
|
||||
}
|
||||
},
|
||||
|
||||
openDrawer: function() {
|
||||
this.$.drawer.openDrawer();
|
||||
},
|
||||
|
||||
closeDrawer: function() {
|
||||
this.$.drawer.closeDrawer();
|
||||
},
|
||||
|
@ -9,7 +9,7 @@
|
||||
<template>
|
||||
<paper-scroll-header-panel class='fit'>
|
||||
<paper-toolbar>
|
||||
<paper-icon-button icon='menu' paper-drawer-toggle></paper-icon-button>
|
||||
<paper-icon-button icon='menu' hidden$='[[!narrow]]' on-click='toggleMenu'></paper-icon-button>
|
||||
<div class='flex'>
|
||||
<content select='[header-title]'></content>
|
||||
</div>
|
||||
@ -32,6 +32,10 @@
|
||||
value: false,
|
||||
},
|
||||
},
|
||||
|
||||
toggleMenu: function() {
|
||||
this.fire('open-menu');
|
||||
},
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user