[Minor] Close is default action if closeable and confirmation
This commit is contained in:
parent
91714eb8b3
commit
e749b556a1
|
@ -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"
|
||||
],
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue