mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-03 14:14:28 +01:00
UI: Fix duplicate status messages (#2481)
The status message is included in the NavLayout, hence the pages that use this layout should not include the status message. Fixes #2478.
This commit is contained in:
@@ -4,8 +4,6 @@
|
||||
ViewData.SetActivePageAndTitle(ManageNavPages.APIKeys, "Manage your API Keys");
|
||||
}
|
||||
|
||||
<partial name="_StatusMessage" />
|
||||
|
||||
<p>
|
||||
The <a asp-controller="Home" asp-action="SwaggerDocs" target="_blank">BTCPay Server Greenfield API</a> offers programmatic access to your instance. You can manage your BTCPay
|
||||
Server (e.g. stores, invoices, users) as well as automate workflows and integrations (see <a href="https://docs.btcpayserver.org/GreenFieldExample/">use case examples</a>).
|
||||
|
||||
@@ -7,8 +7,6 @@
|
||||
ViewData.SetActivePageAndTitle(ManageNavPages.APIKeys, "Add API Key");
|
||||
}
|
||||
|
||||
<partial name="_StatusMessage" />
|
||||
|
||||
<h2 class="mb-4">@ViewData["PageTitle"]</h2>
|
||||
|
||||
<p>Generate a new api key to use BTCPay through its API.</p>
|
||||
|
||||
@@ -3,8 +3,6 @@
|
||||
ViewData.SetActivePageAndTitle(ManageNavPages.ChangePassword, "Change password");
|
||||
}
|
||||
|
||||
<partial name="_StatusMessage" />
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
@if (!ViewContext.ModelState.IsValid)
|
||||
|
||||
@@ -3,8 +3,6 @@
|
||||
ViewData.SetActivePageAndTitle(ManageNavPages.Index, "Profile");
|
||||
}
|
||||
|
||||
<partial name="_StatusMessage" />
|
||||
|
||||
<form method="post">
|
||||
@if (!ViewContext.ModelState.IsValid)
|
||||
{
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
ViewData.SetActivePageAndTitle(ManageNavPages.Notifications, "Notification preferences");
|
||||
}
|
||||
|
||||
<partial name="_StatusMessage" />
|
||||
|
||||
<form method="post" asp-action="NotificationSettings">
|
||||
@if (Model.All)
|
||||
{
|
||||
|
||||
@@ -3,8 +3,6 @@
|
||||
ViewData.SetActivePageAndTitle(ManageNavPages.ChangePassword, "Set password");
|
||||
}
|
||||
|
||||
<partial name="_StatusMessage" />
|
||||
|
||||
<h4>Set your password</h4>
|
||||
|
||||
<p class="text-info">
|
||||
|
||||
@@ -3,8 +3,6 @@
|
||||
ViewData.SetActivePageAndTitle(ManageNavPages.U2F, "Registered U2F devices");
|
||||
}
|
||||
|
||||
<partial name="_StatusMessage" />
|
||||
|
||||
<form asp-action="AddU2FDevice" method="get">
|
||||
<table class="table table-lg mb-4">
|
||||
<thead>
|
||||
|
||||
@@ -11,8 +11,7 @@
|
||||
ViewData.SetActivePageAndTitle(ServerNavPages.Policies, $"ETH Chain {Model.ChainId} Configuration");
|
||||
}
|
||||
|
||||
<partial name="_StatusMessage"/>
|
||||
@if (!this.ViewContext.ModelState.IsValid)
|
||||
@if (!ViewContext.ModelState.IsValid)
|
||||
{
|
||||
<div asp-validation-summary="All" class="text-danger"></div>
|
||||
}
|
||||
|
||||
@@ -48,8 +48,6 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
<partial name="_StatusMessage" />
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<h4 class="mb-3">@ViewData["Title"]</h4>
|
||||
|
||||
Reference in New Issue
Block a user