|
|
@ -1,10 +1,12 @@ |
|
|
|
<tiny-consent-link> |
|
|
|
<a id="tiny-consent-link" class="tiny-consent-link" onclick={ handleOpen }> |
|
|
|
{ state.options.text.open } |
|
|
|
{ state.options.text } |
|
|
|
</a> |
|
|
|
|
|
|
|
<script> |
|
|
|
|
|
|
|
import assign from 'assign-deep'; |
|
|
|
|
|
|
|
/** |
|
|
|
* tiny-consent-link.riot |
|
|
|
* |
|
|
@ -23,9 +25,18 @@ |
|
|
|
state: |
|
|
|
{ |
|
|
|
options: { |
|
|
|
text: { |
|
|
|
'open': 'Open' |
|
|
|
} |
|
|
|
text: 'open' |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
|
* |
|
|
|
*/ |
|
|
|
onBeforeMount() |
|
|
|
{ |
|
|
|
if (this.props.options) { |
|
|
|
this.state.options = assign(this.state.options, this.props.options); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|