AddAddress: in onlyButton case, button is not in ul.record_actions

This commit is contained in:
Mathieu Jaumotte 2021-09-30 14:37:05 +02:00
parent 577d665f09
commit 59fed905e9
2 changed files with 10 additions and 14 deletions

View File

@ -1,17 +1,18 @@
<template> <template>
<ul class="record_actions" <ul class="record_actions" v-if="!options.onlyButton"
:class="{ 'sticky-form-buttons': isStickyForm }"> :class="{ 'sticky-form-buttons': isStickyForm }">
<li v-if="isStickyForm" class="cancel"> <li v-if="isStickyForm" class="cancel">
<slot name="before"></slot> <slot name="before"></slot>
</li> </li>
<li>
<slot name="action"></slot> <slot name="action"></slot>
</li>
<li v-if="isStickyForm"> <li v-if="isStickyForm">
<slot name="after"></slot> <slot name="after"></slot>
</li> </li>
</ul> </ul>
<slot v-else name="action"></slot>
</template> </template>
<script> <script>
@ -23,9 +24,6 @@ export default {
return (typeof this.options.stickyActions !== 'undefined') ? return (typeof this.options.stickyActions !== 'undefined') ?
this.options.stickyActions : this.defaultz.stickyActions; this.options.stickyActions : this.defaultz.stickyActions;
}, },
},
methods: {
} }
} }
</script> </script>

View File

@ -28,13 +28,11 @@
:options="this.options" :options="this.options"
:defaultz="this.defaultz"> :defaultz="this.defaultz">
<template v-slot:action> <template v-slot:action>
<li> <button @click.prevent="$emit('openEditPane')"
<button @click.prevent="$emit('openEditPane')" class="btn" :class="getClassButton"
class="btn" :class="getClassButton" type="button" name="button" :title="$t(getTextButton)">
type="button" name="button" :title="$t(getTextButton)"> <span v-if="displayTextButton">{{ $t(getTextButton) }}</span>
<span v-if="displayTextButton">{{ $t(getTextButton) }}</span> </button>
</button>
</li>
</template> </template>
</action-buttons> </action-buttons>