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:
Dennis Reimann
2020-05-26 17:38:30 +02:00
parent fad53a9fa2
commit b7ec22ee89
6 changed files with 23 additions and 16 deletions

View File

@@ -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; }