mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 07:16:39 +00:00
Allow closing notification by tapping backdrop
This commit is contained in:
parent
b149c97e2c
commit
99822647ef
@ -9,6 +9,6 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<template>
|
<template>
|
||||||
<paper-toast id="toast" text='{{text}}'></paper-toast>
|
<paper-toast id="toast" text='{{text}}' no-cancel-on-outside-click='[[neg]]'></paper-toast>
|
||||||
</template>
|
</template>
|
||||||
</dom-module>
|
</dom-module>
|
||||||
|
@ -11,6 +11,12 @@ export default new Polymer({
|
|||||||
behaviors: [nuclearObserver],
|
behaviors: [nuclearObserver],
|
||||||
|
|
||||||
properties: {
|
properties: {
|
||||||
|
// Otherwise we cannot close a modal when a notification is being shown.
|
||||||
|
neg: {
|
||||||
|
type: Boolean,
|
||||||
|
value: false,
|
||||||
|
},
|
||||||
|
|
||||||
text: {
|
text: {
|
||||||
type: String,
|
type: String,
|
||||||
bindNuclear: notificationGetters.lastNotificationMessage,
|
bindNuclear: notificationGetters.lastNotificationMessage,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user