POS: Replace EnableShoppingCart with DefaultView

This commit is contained in:
Dennis Reimann
2020-05-26 16:48:47 +02:00
parent 5b4fec11ed
commit fad53a9fa2
8 changed files with 32 additions and 27 deletions

View File

@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using BTCPayServer.Services.Apps;
namespace BTCPayServer.Models.AppViewModels
{
@@ -36,7 +33,9 @@ namespace BTCPayServer.Models.AppViewModels
public CurrencyInfoData CurrencyInfo { get; set; }
public bool EnableShoppingCart { get; set; }
public PosViewType DefaultView { get; set; }
public bool IsCartView { get { return DefaultView == PosViewType.Cart; } }
public bool ShowCustomAmount { get; set; }
public bool ShowDiscount { get; set; }
public bool EnableTips { get; set; }