feat(admin-shared,dashboard,js-sdk,types): refund reasons in dashboard (#13575)
CLOSES CORE-1209 This PR just adds the stuff necessary to support refund reasons in the dashboard. It adds the option in the settings tab and allows viewing, creating, editing and deleting refund reasons. I hate to open such a big PR but most of it is copy pasted from the return reasons. Major difference is only the fact that refund reasons don't have a `value` field
This commit is contained in:
@@ -189,6 +189,11 @@ const RETURN_REASON_INJECTION_ZONES = [
|
||||
"return_reason.list.after",
|
||||
] as const
|
||||
|
||||
const REFUND_REASON_INJECTION_ZONES = [
|
||||
"refund_reason.list.before",
|
||||
"refund_reason.list.after",
|
||||
] as const
|
||||
|
||||
const INVENTORY_ITEM_INJECTION_ZONES = [
|
||||
"inventory_item.details.before",
|
||||
"inventory_item.details.after",
|
||||
@@ -229,5 +234,6 @@ export const INJECTION_ZONES = [
|
||||
...CAMPAIGN_INJECTION_ZONES,
|
||||
...TAX_INJECTION_ZONES,
|
||||
...RETURN_REASON_INJECTION_ZONES,
|
||||
...REFUND_REASON_INJECTION_ZONES,
|
||||
...INVENTORY_ITEM_INJECTION_ZONES,
|
||||
] as const
|
||||
|
||||
Reference in New Issue
Block a user