mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
App: Light PoS on top of the existing PoS (#1909)
* Initial commit * review fixes * Fix padding of logo, readjust display font size when clearing numbers Co-authored-by: Kukks <evilkukka@gmail.com>
This commit is contained in:
@@ -65,6 +65,8 @@ namespace BTCPayServer.Controllers
|
||||
var numberFormatInfo = _AppService.Currencies.GetNumberFormatInfo(settings.Currency) ?? _AppService.Currencies.GetNumberFormatInfo("USD");
|
||||
double step = Math.Pow(10, -(numberFormatInfo.CurrencyDecimalDigits));
|
||||
viewType ??= settings.EnableShoppingCart ? PosViewType.Cart : settings.DefaultView;
|
||||
var store = await _AppService.GetStore(app);
|
||||
var storeBlob = store.GetStoreBlob();
|
||||
|
||||
return View("PointOfSale/" + viewType, new ViewPointOfSaleViewModel()
|
||||
{
|
||||
@@ -91,6 +93,7 @@ namespace BTCPayServer.Controllers
|
||||
CustomTipText = settings.CustomTipText,
|
||||
CustomTipPercentages = settings.CustomTipPercentages,
|
||||
CustomCSSLink = settings.CustomCSSLink,
|
||||
CustomLogoLink = storeBlob.CustomLogo,
|
||||
AppId = appId,
|
||||
Description = settings.Description,
|
||||
EmbeddedCSS = settings.EmbeddedCSS
|
||||
|
||||
Reference in New Issue
Block a user