mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-07 15:25:00 +00:00
slot buttons up from actionButtons to addAddress
This commit is contained in:
@@ -2,43 +2,30 @@
|
||||
<ul class="record_actions"
|
||||
:class="{ 'sticky-form-buttons': isStickyForm }">
|
||||
|
||||
<!--
|
||||
<li v-if="isStickyForm" class="cancel">
|
||||
<a class="btn btn-cancel" @click="resetPane">
|
||||
{{ $t('back_to_the_list') }}
|
||||
</a>
|
||||
<slot name="before"></slot>
|
||||
</li>
|
||||
-->
|
||||
|
||||
<slot name="action"></slot>
|
||||
|
||||
<!--
|
||||
<li v-if="isStickyForm">
|
||||
<a class="btn btn-save">
|
||||
{{ $t('action.save')}}
|
||||
</a>
|
||||
<slot name="after"></slot>
|
||||
</li>
|
||||
-->
|
||||
</ul>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "ActionButtons",
|
||||
props: [ 'options', 'default' ],
|
||||
props: ['options', 'defaultz'],
|
||||
computed: {
|
||||
isStickyForm() {
|
||||
return (typeof this.options.stickyActions !== 'undefined') ?
|
||||
this.options.stickyActions : this.default.stickyActions;
|
||||
this.options.stickyActions : this.defaultz.stickyActions;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
resetPane() {
|
||||
this.flag.suggestPane = false;
|
||||
this.flag.editPane = false;
|
||||
this.flag.datePane = false;
|
||||
this.flag.showPane = true;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user