mirror of
https://github.com/bitwarden/server
synced 2025-12-16 08:13:33 +00:00
users listing page
This commit is contained in:
16
src/Admin/Models/UsersModel.cs
Normal file
16
src/Admin/Models/UsersModel.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Bit.Core.Models.Table;
|
||||
|
||||
namespace Bit.Admin.Models
|
||||
{
|
||||
public class UsersModel
|
||||
{
|
||||
public List<User> Users { get; set; }
|
||||
public string Email { get; set; }
|
||||
public int Page { get; set; }
|
||||
public int Count { get; set; }
|
||||
public int? PreviousPage => Page < 2 ? (int?)null : Page - 1;
|
||||
public int? NextPage => Users.Count < Count ? (int?)null : Page + 1;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user