feat: create return reason (#8516)

* feat: create and edit return reasons

* add prop to hide data table header

* make return reasons searchable

* hide table header
This commit is contained in:
Christian
2024-08-12 07:47:07 +02:00
committed by GitHub
parent a19c562bec
commit 4eb2e8379f
18 changed files with 482 additions and 82 deletions
@@ -264,6 +264,14 @@ export const useGlobalShortcuts = () => {
type: "settingShortcut",
to: "/settings/locations",
},
{
keys: {
Mac: ["G", ",", "M"],
},
label: t("app.keyboardShortcuts.settings.goToReturnReasons"),
type: "settingShortcut",
to: "/settings/return-reasons",
},
{
keys: {
Mac: ["G", ",", "J"],
@@ -1304,6 +1304,28 @@ export const RouteMap: RouteObject[] = [
path: "",
lazy: () =>
import("../../routes/return-reasons/return-reason-list"),
children: [
{
path: "create",
lazy: () =>
import(
"../../routes/return-reasons/return-reason-create"
),
},
{
path: ":id",
children: [
{
path: "edit",
lazy: () =>
import(
"../../routes/return-reasons/return-reason-edit"
),
},
],
},
],
},
],
},