rename variable displayText

This commit is contained in:
Mathieu Jaumotte 2021-08-16 10:19:53 +02:00
parent 2d2bb117ca
commit 1b3904f8e3
4 changed files with 7 additions and 7 deletions

View File

@ -52,7 +52,7 @@ export default {
},
type: window.buttonType || null,
size: window.buttonSize || null,
display: window.buttonDisplay //boolean, default: true
displayText: window.buttonDisplayText //boolean, default: true
},
/// Modal title text if create or edit address (trans chain, see i18n)

View File

@ -146,7 +146,7 @@ export default {
button: {
text: { create: 'add_an_address_title', edit: 'edit_address' },
type: 'btn-create',
display: true
displayText: true
},
title: { create: 'add_an_address_title', edit: 'edit_address' },
bindModal: {
@ -232,8 +232,8 @@ export default {
return size ? `${size} ${type}` : type;
},
displayTextButton() {
return (typeof this.options.button !== 'undefined' && typeof this.options.button.display !== 'undefined') ?
this.options.button.display : this.default.button.display;
return (typeof this.options.button !== 'undefined' && typeof this.options.button.displayText !== 'undefined') ?
this.options.button.displayText : this.default.button.displayText;
},
context() {
return this.context;

View File

@ -60,8 +60,8 @@
window.buttonSize = '{{ buttonSize|e('js') }}';
{% endif %}
{% if buttonDisplay is defined and buttonDisplay == false %}
window.buttonDisplay = false;
{% if buttonDisplayText is defined and buttonDisplayText == false %}
window.buttonDisplayText = false;
{% endif %}
{% if binModalStep1 is defined and binModalStep1 == false %}

View File

@ -208,7 +208,7 @@ This view should receive those arguments:
modalTitle: 'Edit address', buttonText: 'Edit address',
buttonType: 'btn-update',
buttonSize: 'btn-sm',
buttonDisplay: false
buttonDisplayText: false
} %}
</li>
<li class="list-inline-item">