feat(perfume): add toast notifications and refresh datatable on save for create and edit actions
This commit is contained in:
parent
7e4a129bb7
commit
2219534a73
@ -42,6 +42,8 @@ public function save()
|
||||
|
||||
$this->form->store();
|
||||
|
||||
$this->dispatch('refreshDatatable');
|
||||
|
||||
$this->toast('Parfum berhasil ditambahkan.');
|
||||
|
||||
$this->redirectRoute('studio.catalog.perfume.index', navigate: true);
|
||||
|
||||
@ -45,6 +45,8 @@ public function save()
|
||||
|
||||
$this->form->update();
|
||||
|
||||
$this->dispatch('refreshDatatable');
|
||||
|
||||
$this->toast('Parfum berhasil diperbarui.');
|
||||
|
||||
$this->redirectRoute('studio.catalog.perfume.index', navigate: true);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user