Editace fotek v modalu, lepsi datetime picker
This commit is contained in:
@@ -6,7 +6,6 @@ import {useSlots} from "vue";
|
||||
const props = defineProps({
|
||||
modelValue: {
|
||||
type: Object,
|
||||
required: true
|
||||
},
|
||||
resetAfterSubmit: {
|
||||
type: Boolean,
|
||||
@@ -14,9 +13,8 @@ const props = defineProps({
|
||||
default: false
|
||||
},
|
||||
isRequestPending,
|
||||
|
||||
saveButton: {
|
||||
type: Object,
|
||||
type: [Object, Boolean],
|
||||
required: false,
|
||||
default: () => ({
|
||||
label: "Save",
|
||||
@@ -42,7 +40,7 @@ const saveForm = () => {
|
||||
|
||||
<slot name="saveButton" />
|
||||
|
||||
<q-btn type="submit" color="primary" :icon="props.saveButton.icon" :loading="props.isRequestPending">
|
||||
<q-btn type="submit" color="primary" v-if="saveButton" :icon="props.saveButton.icon" :loading="props.isRequestPending">
|
||||
{{ props.saveButton.label }}
|
||||
<template v-slot:loading>
|
||||
Loading...
|
||||
|
||||
Reference in New Issue
Block a user