Allow customization of Save button for model-crud
This commit is contained in:
parent
3d9c31c084
commit
d1b503fd41
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue