refactor: rename 'Pemasok' to 'Supplier' in SupplierController and remove unused supplier-related components for cleaner code structure
This commit is contained in:
parent
23aa357917
commit
3d2d51f85e
@ -35,7 +35,7 @@ public function store(SupplierRequest $request): RedirectResponse
|
||||
{
|
||||
$this->supplierService->create($request->validated());
|
||||
|
||||
$this->flashCreated('Pemasok');
|
||||
$this->flashCreated('Supplier');
|
||||
|
||||
return redirect()->route('admin.master.suppliers.index');
|
||||
}
|
||||
@ -44,7 +44,7 @@ public function update(SupplierRequest $request, Supplier $supplier): RedirectRe
|
||||
{
|
||||
$this->supplierService->update($supplier, $request->validated());
|
||||
|
||||
$this->flashUpdated('Pemasok');
|
||||
$this->flashUpdated('Supplier');
|
||||
|
||||
return redirect()->route('admin.master.suppliers.index');
|
||||
}
|
||||
@ -53,7 +53,7 @@ public function destroy(Supplier $supplier): RedirectResponse
|
||||
{
|
||||
$this->supplierService->delete($supplier);
|
||||
|
||||
$this->flashDeleted('Pemasok');
|
||||
$this->flashDeleted('Supplier');
|
||||
|
||||
return redirect()->route('admin.master.suppliers.index');
|
||||
}
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import type { ColumnDef } from '@tanstack/vue-table';
|
||||
import { h } from 'vue';
|
||||
import DataTableActions from './data-table-actions.vue';
|
||||
import { DataTableColumnHeader } from '@/components/data-table';
|
||||
import type { CategoryListItem } from '@/types/category';
|
||||
import DataTableActions from './data-table-actions.vue';
|
||||
|
||||
export function createColumns(onEdit: (category: CategoryListItem) => void): ColumnDef<CategoryListItem>[] {
|
||||
return [
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
import { Head } from '@inertiajs/vue3';
|
||||
import { Plus } from '@lucide/vue';
|
||||
import { computed, ref, watch } from 'vue';
|
||||
import { createColumns } from '@/components/admin/master/suppliers/columns';
|
||||
import SupplierFormModal from '@/components/admin/master/suppliers/SupplierFormModal.vue';
|
||||
import { createColumns } from './table/columns';
|
||||
import SupplierFormModal from './form/SupplierFormModal.vue';
|
||||
import { DataTable } from '@/components/data-table';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import type { ColumnDef } from '@tanstack/vue-table';
|
||||
import { h } from 'vue';
|
||||
import DataTableActions from '@/components/admin/master/suppliers/data-table-actions.vue';
|
||||
import { DataTableColumnHeader } from '@/components/data-table';
|
||||
import type { SupplierListItem } from '@/types/supplier';
|
||||
import DataTableActions from './data-table-actions.vue';
|
||||
|
||||
export function createColumns(onEdit: (supplier: SupplierListItem) => void): ColumnDef<SupplierListItem>[] {
|
||||
return [
|
||||
Loading…
Reference in New Issue
Block a user