update module rekening

This commit is contained in:
daengdeni 2024-01-10 11:51:13 +07:00
parent 5f5d6d87ed
commit 29824ae21d
2 changed files with 14 additions and 6 deletions

View File

@ -33,6 +33,7 @@
protected $listeners = [
'delete' => 'delete',
'update' => 'update',
'reload' => 'reload',
];
public function render()
@ -177,6 +178,12 @@
}
}
public function reload()
{
$this->edit_mode = false;
$this->reset();
}
public function hydrate()
{
$this->resetErrorBag();

View File

@ -88,16 +88,17 @@
confirmButton: 'btn btn-primary',
}
})
$('#kt_modal_add_rekening').modal('hide');
LaravelDataTables['rekening-table'].ajax.reload();
});
});
$(function(){
$('#kt_modal_add_rekening').on('hidden.bs.modal', function () {
$(this).find('form').trigger('reset');
})
});
$('#kt_modal_add_rekening').on('hidden.bs.modal', function () {
$(this).find('form').trigger('reset');
Livewire.dispatch('reload', false);
})
</script>
@endpush