mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2026-01-26 02:54:30 +01:00
14 lines
403 B
Plaintext
14 lines
403 B
Plaintext
@using BTCPayServer.Plugins.AOPP
|
|
@using Newtonsoft.Json
|
|
@using Newtonsoft.Json.Linq
|
|
@inject AOPPService AOPPService
|
|
@{
|
|
|
|
var storeId = ((JObject)JObject.Parse(JsonConvert.SerializeObject(Model)))["StoreId"].Value<string>();
|
|
var settings = await AOPPService.GetAOPPForStore(storeId);
|
|
if (settings?.Enabled is true)
|
|
{
|
|
<script src="~/Resources/js/aoppComponent.js"></script>
|
|
}
|
|
}
|