mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
Adjust listing link for view/edit
This commit is contained in:
parent
2cf9127ef1
commit
1b313e6df4
@ -50,7 +50,8 @@ namespace Bit.Admin.Controllers
|
||||
UserEmail = string.IsNullOrWhiteSpace(userEmail) ? null : userEmail,
|
||||
Paid = paid,
|
||||
Page = page,
|
||||
Count = count
|
||||
Count = count,
|
||||
Action = _globalSettings.SelfHosted ? "View" : "Edit"
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -47,7 +47,8 @@ namespace Bit.Admin.Controllers
|
||||
Items = users as List<User>,
|
||||
Email = string.IsNullOrWhiteSpace(email) ? null : email,
|
||||
Page = page,
|
||||
Count = count
|
||||
Count = count,
|
||||
Action = _globalSettings.SelfHosted ? "View" : "Edit"
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -7,5 +7,6 @@ namespace Bit.Admin.Models
|
||||
public string Name { get; set; }
|
||||
public string UserEmail { get; set; }
|
||||
public bool? Paid { get; set; }
|
||||
public string Action { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -5,5 +5,6 @@ namespace Bit.Admin.Models
|
||||
public class UsersModel : PagedModel<User>
|
||||
{
|
||||
public string Email { get; set; }
|
||||
public string Action { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -43,7 +43,7 @@
|
||||
{
|
||||
<tr>
|
||||
<td>
|
||||
<a asp-action="Edit" asp-route-id="@org.Id">@org.Name</a>
|
||||
<a asp-action="@Model.Action" asp-route-id="@org.Id">@org.Name</a>
|
||||
</td>
|
||||
<td>
|
||||
@org.Plan
|
||||
|
@ -33,7 +33,7 @@
|
||||
{
|
||||
<tr>
|
||||
<td>
|
||||
<a asp-action="Edit" asp-route-id="@user.Id">@user.Email</a>
|
||||
<a asp-action="@Model.Action" asp-route-id="@user.Id">@user.Email</a>
|
||||
</td>
|
||||
<td>
|
||||
<span title="@user.CreationDate.ToString()">
|
||||
|
Loading…
Reference in New Issue
Block a user