mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
AddAddress: in onlyButton case, button is not in ul.record_actions
This commit is contained in:
parent
577d665f09
commit
59fed905e9
@ -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>
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user