Skip to content

Commit

Permalink
Adds new feature flag to show/hide edit button on site picker
Browse files Browse the repository at this point in the history
  • Loading branch information
JorgeMucientes committed Dec 13, 2024
1 parent af499bf commit 113223d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ enum class FeatureFlag {
POS_CASH_PAYMENTS,
POS_RECEIPTS,
PRODUCT_GLOBAL_UNIQUE_IDENTIFIER_SUPPORT,
BULK_UPDATE_ORDERS_STATUS;
BULK_UPDATE_ORDERS_STATUS,
HIDE_SITES_FROM_SITE_PICKER;

fun isEnabled(context: Context? = null): Boolean {
return when (this) {
Expand All @@ -32,7 +33,8 @@ enum class FeatureFlag {
POS_CASH_PAYMENTS,
POS_RECEIPTS,
PRODUCT_GLOBAL_UNIQUE_IDENTIFIER_SUPPORT,
BULK_UPDATE_ORDERS_STATUS -> PackageUtils.isDebugBuild()
BULK_UPDATE_ORDERS_STATUS,
HIDE_SITES_FROM_SITE_PICKER -> PackageUtils.isDebugBuild()

NEW_SHIPPING_SUPPORT,
ENDLESS_CAMPAIGNS_SUPPORT,
Expand Down

0 comments on commit 113223d

Please sign in to comment.