Allow closing notification by tapping backdrop

This commit is contained in:
Paulus Schoutsen 2016-04-07 21:33:43 -07:00
parent b149c97e2c
commit 99822647ef
2 changed files with 7 additions and 1 deletions

View File

@ -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>

View File

@ -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,