mirror of
https://github.com/bitwarden/server.git
synced 2025-04-16 02:28:13 -05: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,
|
UserEmail = string.IsNullOrWhiteSpace(userEmail) ? null : userEmail,
|
||||||
Paid = paid,
|
Paid = paid,
|
||||||
Page = page,
|
Page = page,
|
||||||
Count = count
|
Count = count,
|
||||||
|
Action = _globalSettings.SelfHosted ? "View" : "Edit"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -47,7 +47,8 @@ namespace Bit.Admin.Controllers
|
|||||||
Items = users as List<User>,
|
Items = users as List<User>,
|
||||||
Email = string.IsNullOrWhiteSpace(email) ? null : email,
|
Email = string.IsNullOrWhiteSpace(email) ? null : email,
|
||||||
Page = page,
|
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 Name { get; set; }
|
||||||
public string UserEmail { get; set; }
|
public string UserEmail { get; set; }
|
||||||
public bool? Paid { 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 class UsersModel : PagedModel<User>
|
||||||
{
|
{
|
||||||
public string Email { get; set; }
|
public string Email { get; set; }
|
||||||
|
public string Action { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
{
|
{
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<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>
|
||||||
<td>
|
<td>
|
||||||
@org.Plan
|
@org.Plan
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
{
|
{
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<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>
|
||||||
<td>
|
<td>
|
||||||
<span title="@user.CreationDate.ToString()">
|
<span title="@user.CreationDate.ToString()">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user