mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
adding options to custom button, and improve stepWithModal options
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user