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

@@ -1,33 +1,30 @@
<template>
<template>step1
<div v-if="insideModal === false" class="loading">
<i v-if="flag.loading" class="fa fa-circle-o-notch fa-spin fa-2x fa-fw"></i>
<span class="sr-only">{{ $t('loading') }}</span>
</div>
<div v-if="errorMsg && errorMsg.length > 0" class="alert alert-danger">
{{ errorMsg }}
</div>
<div v-if="errorMsg && errorMsg.length > 0" class="alert alert-danger">{{ errorMsg }}</div>
<div v-if="flag.success" class="alert alert-success">
{{ $t(getSuccessText) }}
</div>
<div v-if="flag.success" class="alert alert-success">{{ $t(getSuccessText) }}</div>
suggestions
<h3>{{ $t('address_suggestions') }}</h3>
<action-buttons v-if="insideModal === false"
:flag="this.flag"
:options="this.options"
:default="this.default">
:defaultz="this.defaultz">
<template v-slot:before>
<slot name="before"></slot>
</template>
<template v-slot:action>
<li>
<a @click.prevent="$emit('openEditPane')"
class="btn btn-update">
{{ $t('action.edit')}}
</a>
</li>
<slot name="action"></slot>
</template>
<template v-slot:after>
<slot name="after"></slot>
</template>
</action-buttons>
</template>
<script>
@@ -43,21 +40,13 @@ export default {
props: [
'context',
'options',
'default',
'defaultz',
'flag',
'entity',
'errorMsg',
'insideModal'
],
emits: ['openEditPane'],
computed: {
},
methods: {
}
computed: {},
methods: {}
}
</script>
<style scoped>
</style>