[Fix] Removed localizeContent feature: doesn't work
This commit is contained in:
parent
eebe6bcb5a
commit
e776171bef
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "strolch-wc-dialog-button",
|
||||
"description": "Strolch WebComponent Dialog Button",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.1",
|
||||
"authors": [
|
||||
"Robert von Burg"
|
||||
],
|
||||
|
@ -24,7 +24,6 @@
|
|||
"strolchjs": "strolch-li/strolchjs#^0.4.4",
|
||||
"strolch-wc-styles": "strolch-li/strolch-wc-styles#^0.3.1",
|
||||
"strolch-wc-util-behavior": "strolch-li/strolch-wc-util-behavior#^0.1.1",
|
||||
"strolch-wc-localize-behavior": "strolch-li/strolch-wc-localize-behavior#^1.1.12",
|
||||
|
||||
"paper-icon-button": "PolymerElements/paper-icon-button#^1.1.6",
|
||||
"paper-dialog": "PolymerElements/paper-dialog#^1.1.0",
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
<link rel="import" href="../strolch-wc-styles/strolch-wc-styles.html">
|
||||
<link rel="import" href="../strolch-wc-util-behavior/strolch-wc-util-behavior.html">
|
||||
<link rel="import" href="../strolch-wc-localize-behavior/strolch-wc-localize-behavior.html">
|
||||
|
||||
<dom-module id="strolch-wc-dialog-button">
|
||||
<template>
|
||||
|
@ -23,8 +22,8 @@
|
|||
</style>
|
||||
|
||||
<!-- Content -->
|
||||
<paper-icon-button disabled$="{{!dialogContent}}"
|
||||
icon="{{buttonIcon}}"
|
||||
<paper-icon-button disabled$="[[!dialogContent]]"
|
||||
icon="[[buttonIcon]]"
|
||||
on-tap="toggleDialog"></paper-icon-button>
|
||||
|
||||
<template is="dom-if" if="[[open]]" restamp>
|
||||
|
@ -35,21 +34,16 @@
|
|||
id="paper-dialog"
|
||||
class="aligned-dialog"
|
||||
on-iron-overlay-closed="onClose">
|
||||
|
||||
<template is="dom-if" if="[[dialogHeadline]]">
|
||||
<h2>{{dialogHeadline}}</h2>
|
||||
<h2>[[dialogHeadline]]</h2>
|
||||
</template>
|
||||
<template is="dom-if" if="[[isDefined(localizeContent)]]">
|
||||
<p>[[localize(dialogContent)]]</p>
|
||||
<template is="dom-if" if="[[isNotEmptyString(supplementaryContent)]]">
|
||||
<p>[[localize(supplementaryContent)]]</p>
|
||||
</template>
|
||||
</template>
|
||||
<template is="dom-if" if="[[!isDefined(localizeContent)]]">
|
||||
<p>[[dialogContent]]</p>
|
||||
<template is="dom-if" if="[[isNotEmptyString(supplementaryContent)]]">
|
||||
<p>[[supplementaryContent]]</p>
|
||||
</template>
|
||||
|
||||
<p>[[dialogContent]]</p>
|
||||
<template is="dom-if" if="[[isNotEmptyString(supplementaryContent)]]">
|
||||
<p>[[supplementaryContent]]</p>
|
||||
</template>
|
||||
|
||||
<template is="dom-if" if="[[linkUrl]]">
|
||||
<a href$="[[linkUrl]]" target="_blank">
|
||||
<paper-button raised style="margin-bottom: 10px">[[linkName]]</paper-button>
|
||||
|
@ -72,7 +66,7 @@
|
|||
|
||||
<!-- Behaviors -->
|
||||
behaviors: [
|
||||
StrolchUtilBehavior, StrolchLocalizeBehavior
|
||||
StrolchUtilBehavior
|
||||
],
|
||||
|
||||
<!-- Properties -->
|
||||
|
@ -81,18 +75,17 @@
|
|||
type: Boolean,
|
||||
value: false
|
||||
},
|
||||
localizeContent: {
|
||||
type: Boolean,
|
||||
value: false
|
||||
},
|
||||
dialogContent: {
|
||||
type: String
|
||||
type: String,
|
||||
value: null
|
||||
},
|
||||
supplementaryContent: {
|
||||
type: String
|
||||
type: String,
|
||||
value: null
|
||||
},
|
||||
newPage: {
|
||||
type: String
|
||||
type: String,
|
||||
value: null
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue