mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
POS: Set ViewType via optional URL parameter
Falls back to the DefaultView defined in the POS settings. POS: Fix POST-Route
This commit is contained in:
@@ -33,9 +33,9 @@ namespace BTCPayServer.Models.AppViewModels
|
||||
|
||||
public CurrencyInfoData CurrencyInfo { get; set; }
|
||||
|
||||
public PosViewType DefaultView { get; set; }
|
||||
public PosViewType ViewType { get; set; }
|
||||
|
||||
public bool IsCartView { get { return DefaultView == PosViewType.Cart; } }
|
||||
public bool IsCartView { get { return ViewType == PosViewType.Cart; } }
|
||||
public bool ShowCustomAmount { get; set; }
|
||||
public bool ShowDiscount { get; set; }
|
||||
public bool EnableTips { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user