diff --git a/src/components/ComponentCadastroRapido.vue b/src/components/ComponentCadastroRapido.vue index e2d6db5..8b47dc8 100644 --- a/src/components/ComponentCadastroRapido.vue +++ b/src/components/ComponentCadastroRapido.vue @@ -90,7 +90,13 @@ const props = defineProps({ initialData: { type: Object, default: () => ({}) }, closeOnCreated: { type: Boolean, default: true }, - resetOnOpen: { type: Boolean, default: true } + resetOnOpen: { type: Boolean, default: true }, + + // Quando true (uso "in-flow", ex: dentro do AgendaEventDialog), + // esconde o botao "Salvar e ver pacientes" — navegar pra lista + // abandonaria o fluxo onde o cadastro foi aberto. Default false + // mantem o botao visivel pra usos standalone (sidebar, menu). + hideViewListButton: { type: Boolean, default: false } }); const emit = defineEmits(['update:modelValue', 'created']); @@ -346,9 +352,10 @@ async function submit(mode = 'only') {