update module guarantee type
This commit is contained in:
parent
2b74e8f14f
commit
880eb3ec50
@ -21,6 +21,7 @@
|
|||||||
protected $listeners = [
|
protected $listeners = [
|
||||||
'delete' => 'delete',
|
'delete' => 'delete',
|
||||||
'update' => 'update',
|
'update' => 'update',
|
||||||
|
'reload' => 'reload',
|
||||||
];
|
];
|
||||||
|
|
||||||
public function render()
|
public function render()
|
||||||
@ -142,6 +143,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function reload()
|
||||||
|
{
|
||||||
|
$this->edit_mode = false;
|
||||||
|
$this->reset();
|
||||||
|
}
|
||||||
|
|
||||||
public function hydrate()
|
public function hydrate()
|
||||||
{
|
{
|
||||||
$this->resetErrorBag();
|
$this->resetErrorBag();
|
||||||
|
@ -92,6 +92,11 @@
|
|||||||
LaravelDataTables['guarantee-type-table'].ajax.reload();
|
LaravelDataTables['guarantee-type-table'].ajax.reload();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('#kt_modal_add_guarantee_type').on('hidden.bs.modal', function () {
|
||||||
|
$(this).find('form').trigger('reset');
|
||||||
|
Livewire.dispatch('reload', false);
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
@endpush
|
@endpush
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user