123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <template>
- <div class="field is-grouped">
- <div class="control">
- <v-button :color="color" :isLoading="isBusy" :disabled="isDisabled" >{{ caption }}</v-button>
- </div>
- <div class="control" v-if="showCancelButton">
- <router-link :to="{ name: cancelLandingView }" class="button is-text">{{ $t('commons.cancel') }}</router-link>
- </div>
- </div>
- </template>
- <script>
- export default {
- name: 'FormButtons',
-
- data() {
- return {
- }
- },
- props: {
- showCancelButton: {
- type: Boolean,
- default: false
- },
- isBusy: {
- type: Boolean,
- default: false
- },
- isDisabled: {
- type: Boolean,
- default: false
- },
- caption: {
- type: String,
- default: 'Submit'
- },
- cancelLandingView: {
- type: String,
- default: ''
- },
- color: {
- type: String,
- default: 'is-link'
- },
- }
- }
- </script>
|