sobre gerar pix de forma conversacional
This commit is contained in:
parent
b3a2a50c4f
commit
276a6a2d89
@ -36,7 +36,9 @@ const handleCreate = () => {
|
|||||||
nextTick(() => connectInboxDialog.value.dialogRef.open());
|
nextTick(() => connectInboxDialog.value.dialogRef.open());
|
||||||
};
|
};
|
||||||
const handleAction = ({ action, id }) => {
|
const handleAction = ({ action, id }) => {
|
||||||
selectedInbox.value = captainInboxes.value.find(inbox => id === inbox.id);
|
selectedInbox.value = captainInboxes.value.find(
|
||||||
|
inbox => id === inbox.captain_inbox.id
|
||||||
|
);
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
if (action === 'delete') {
|
if (action === 'delete') {
|
||||||
handleDelete();
|
handleDelete();
|
||||||
@ -77,7 +79,7 @@ onMounted(() =>
|
|||||||
<div class="flex flex-col gap-4">
|
<div class="flex flex-col gap-4">
|
||||||
<InboxCard
|
<InboxCard
|
||||||
v-for="captainInbox in captainInboxes"
|
v-for="captainInbox in captainInboxes"
|
||||||
:id="captainInbox.id"
|
:id="captainInbox.captain_inbox.id"
|
||||||
:key="captainInbox.id"
|
:key="captainInbox.id"
|
||||||
:inbox="captainInbox"
|
:inbox="captainInbox"
|
||||||
:assistant-id="assistantId"
|
:assistant-id="assistantId"
|
||||||
@ -92,7 +94,7 @@ onMounted(() =>
|
|||||||
:entity="selectedInbox"
|
:entity="selectedInbox"
|
||||||
:delete-payload="{
|
:delete-payload="{
|
||||||
assistantId: assistantId,
|
assistantId: assistantId,
|
||||||
inboxId: selectedInbox.id,
|
inboxId: selectedInbox.captain_inbox.id,
|
||||||
}"
|
}"
|
||||||
type="Inboxes"
|
type="Inboxes"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@ -18,12 +18,12 @@ class Api::V1::Accounts::Captain::InboxesController < Api::V1::Accounts::BaseCon
|
|||||||
end
|
end
|
||||||
|
|
||||||
def update
|
def update
|
||||||
@captain_inbox = @assistant.captain_inboxes.find_by!(inbox_id: permitted_params[:inbox_id])
|
@captain_inbox = @assistant.captain_inboxes.find(permitted_params[:id])
|
||||||
@captain_inbox.update!(update_params)
|
@captain_inbox.update!(update_params)
|
||||||
end
|
end
|
||||||
|
|
||||||
def destroy
|
def destroy
|
||||||
@captain_inbox = @assistant.captain_inboxes.find_by!(inbox_id: permitted_params[:inbox_id])
|
@captain_inbox = @assistant.captain_inboxes.find(permitted_params[:id])
|
||||||
@captain_inbox.destroy!
|
@captain_inbox.destroy!
|
||||||
head :no_content
|
head :no_content
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user