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