Allow customization of Save button for model-crud

This commit is contained in:
Lance Edgar 2020-02-26 17:45:58 -06:00
parent 3d9c31c084
commit d1b503fd41

View file

@ -32,10 +32,10 @@
<div v-if="showButtons"
class="buttons">
<b-button type="is-primary"
icon-left="save"
:icon-left="saveButtonIcon"
:disabled="saveDisabled"
@click="save()">
Save Data
{{ saveButtonText }}
</b-button>
<b-button v-if="mode == 'creating'"
tag="router-link"
@ -160,6 +160,14 @@ export default {
type: Boolean,
default: false,
},
saveButtonText: {
type: String,
default: "Save Data",
},
saveButtonIcon: {
type: String,
default: 'save',
},
},
data: function() {
return {