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