[Minor] Close is default action if closeable and confirmation

This commit is contained in:
Robert von Burg 2021-11-24 13:20:48 +01:00
parent 91714eb8b3
commit e749b556a1
2 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{
"name": "strolch-wc-information-dialog",
"description": "Strolch WebComponent Information Dialog",
"version": "0.1.4",
"version": "0.1.5",
"authors": [
"Robert von Burg"
],

View File

@ -36,10 +36,13 @@
<template is="dom-if" if="[[cancelable]]">
<paper-button on-tap="_onCancel">[[cancelLbl]]</paper-button>
</template>
<paper-button autofocus on-tap="_onOk">[[okLbl]]</paper-button>
<template is="dom-if" if="[[closeable]]">
<paper-button on-tap="_onOk">[[okLbl]]</paper-button>
<paper-button autofocus on-tap="_onClose">[[closeLbl]]</paper-button>
</template>
<template is="dom-if" if="[[!closeable]]">
<paper-button autofocus on-tap="_onOk">[[okLbl]]</paper-button>
</template>
</template>
<template is="dom-if" if="[[!confirmation]]">
<paper-button autofocus on-tap="_onClose">[[closeLbl]]</paper-button>