Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Display chips
dominik-zeglen7b1991c59f3d
diff --git a/saleor/static/dashboard-next/orders/views/OrderList/filters.ts b/saleor/static/dashboard-next/orders/views/OrderList/filters.tsindex 85a5acc61b..39bc73341d 100644--- a/saleor/static/dashboard-next/orders/views/OrderList/filters.ts+++ b/saleor/static/dashboard-next/orders/views/OrderList/filters.ts@@ -18,6 +18,21 @@ import {export const ORDER_FILTERS_KEY = "orderFilters";+function getStatusLabel(status: string): string {+ switch (status) {+ case OrderStatusFilter.FULFILLED.toString():+ return i18n.t("Fulfilled");++ case OrderStatusFilter.PARTIALLY_FULFILLED.toString():+ return i18n.t("Partially Fulfilled");++ case OrderStatusFilter.UNFULFILLED.toString():+ return i18n.t("Unfulfilled");+ }++ return "";+}+export function getFilterVariables(params: OrderListUrlFilters): OrderFilterInput {@@ -130,6 +145,20 @@ export function createFilterChips(}}+ if (!!filters.status) {+ filterChips = [+ ...filterChips,+ {+ label: getStatusLabel(filters.status),+ onClick: () =>+ onFilterDelete({+ ...filters,+ status: undefined+ })+ }+ ];+ }+return filterChips;}