add no-footer prop to remove default footer on CardForm

This commit is contained in:
Axolotle 2020-12-16 12:36:45 +01:00
parent 6f028961c0
commit fb3c178593

View file

@ -15,7 +15,7 @@
</b-form>
</template>
<slot name="buttons" slot="buttons">
<slot v-if="!noFooter" name="buttons" slot="buttons">
<b-button
type="submit" variant="success"
:form="id" :disabled="disabled"
@ -37,7 +37,8 @@ export default {
validation: { type: Object, default: null },
serverError: { type: String, default: '' },
inline: { type: Boolean, default: false },
formClasses: { type: [Array, String, Object], default: null }
formClasses: { type: [Array, String, Object], default: null },
noFooter: { type: Boolean, default: false }
},
computed: {