slot buttons up from actionButtons to addAddress

This commit is contained in:
2021-09-17 16:50:27 +02:00
parent 4855ec2065
commit 2788170f03
13 changed files with 149 additions and 139 deletions

View File

@@ -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>