adding options to custom button, and improve stepWithModal options

This commit is contained in:
2021-08-06 15:53:50 +02:00
parent 01cc230136
commit 9f3ceb94f0
3 changed files with 46 additions and 21 deletions

View File

@@ -4,11 +4,6 @@
class="alert alert-danger my-2">
{{ error }}
</div>
<pre v-if="addAddress.result">
{{ addAddress.result.address_id }}
</pre>
<add-address
v-bind:key="addAddress.type"
v-bind:context="context"
@@ -39,13 +34,21 @@ export default {
/// Options override default
/// First button text if create or edit address (trans chain, see i18n)
//textButton: { create: 'bim', edit: 'bam' },
button: {
//text: { create: 'bim', edit: 'bam' },
type: 'btn-update',
size: 'btn-sm',
display: false
},
/// Modal title text if create or edit address (trans chain, see i18n)
//title: { create: 'boum', edit: 'pan' },
/// Display each step in page or Modal
//bindModal: { step1: false, step2: false } //TODO true-false must not be possible
bindModal: {
step1: false,
step2: false
}
},
type: 'person',
result: null // <== returned from addAddress component