rename variable displayText

This commit is contained in:
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;