mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-20 14:34:29 +01:00
Dashboard: Fix app stats tiles (#4775)
* Dashboard: Fix app stats tiles They broke with #4747, because they contain script blocks that are loaded asynchronuosly and need to get run once the chart data is added to the page. * Refactor PoS dashboard component * Collocate the component JS files in separate files --------- Co-authored-by: nicolas.dorier <nicolas.dorier@gmail.com>
This commit is contained in:
@@ -21,8 +21,7 @@ namespace BTCPayServer.Controllers
|
||||
|
||||
app.StoreData = GetCurrentStore();
|
||||
|
||||
var vm = new AppTopItemsViewModel { App = app };
|
||||
return ViewComponent("AppTopItems", new { vm });
|
||||
return ViewComponent("AppTopItems", new { appId = app.Id });
|
||||
}
|
||||
|
||||
[Authorize(Policy = Policies.CanModifyStoreSettings, AuthenticationSchemes = AuthenticationSchemes.Cookie)]
|
||||
@@ -34,9 +33,7 @@ namespace BTCPayServer.Controllers
|
||||
return NotFound();
|
||||
|
||||
app.StoreData = GetCurrentStore();
|
||||
|
||||
var vm = new AppSalesViewModel { App = app };
|
||||
return ViewComponent("AppSales", new { vm });
|
||||
return ViewComponent("AppSales", new { appId = app.Id });
|
||||
}
|
||||
|
||||
[Authorize(Policy = Policies.CanModifyStoreSettings, AuthenticationSchemes = AuthenticationSchemes.Cookie)]
|
||||
|
||||
Reference in New Issue
Block a user