feat(dashboard): Pub Api Key domain (#6162)
**What** - Adds Pub. Api Key domain **Note** - Pagination for sales channels associated with the pubkey is not implemented correctly as it is not supported by the API. Will open a separate issue on this, and revisit the impl. once fixed. CLOSES CORE-1656
This commit is contained in:
@@ -3,7 +3,9 @@ import type {
|
||||
AdminCustomerGroupsRes,
|
||||
AdminCustomersRes,
|
||||
AdminProductsRes,
|
||||
AdminPublishableApiKeysRes,
|
||||
AdminRegionsRes,
|
||||
AdminSalesChannelsRes,
|
||||
} from "@medusajs/medusa"
|
||||
import {
|
||||
Outlet,
|
||||
@@ -487,6 +489,10 @@ const router = createBrowserRouter([
|
||||
path: ":id",
|
||||
lazy: () =>
|
||||
import("../../routes/sales-channels/sales-channel-detail"),
|
||||
handle: {
|
||||
crumb: (data: AdminSalesChannelsRes) =>
|
||||
data.sales_channel.name,
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: "edit",
|
||||
@@ -533,6 +539,10 @@ const router = createBrowserRouter([
|
||||
import(
|
||||
"../../routes/api-key-management/api-key-management-detail"
|
||||
),
|
||||
handle: {
|
||||
crumb: (data: AdminPublishableApiKeysRes) =>
|
||||
data.publishable_api_key.title,
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: "edit",
|
||||
@@ -541,6 +551,13 @@ const router = createBrowserRouter([
|
||||
"../../routes/api-key-management/api-key-management-edit"
|
||||
),
|
||||
},
|
||||
{
|
||||
path: "add-sales-channels",
|
||||
lazy: () =>
|
||||
import(
|
||||
"../../routes/api-key-management/api-key-management-add-sales-channels"
|
||||
),
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user