1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-07 11:03:54 +00:00

support for showing groupings on ciphers list page

This commit is contained in:
Kyle Spearrin
2018-12-06 14:17:28 -05:00
parent 5cc1e2bb29
commit 0b1c0be0f0
3 changed files with 152 additions and 75 deletions

View File

@@ -217,7 +217,7 @@ namespace Bit.App.Models.Page
Count = count;
}
public Grouping(Folder folder, int count)
public Grouping(Folder folder, int? count)
{
Id = folder.Id;
Name = folder.Name?.Decrypt();
@@ -225,7 +225,7 @@ namespace Bit.App.Models.Page
Count = count;
}
public Grouping(Collection collection, int count)
public Grouping(Collection collection, int? count)
{
Id = collection.Id;
Name = collection.Name?.Decrypt(collection.OrganizationId);
@@ -235,9 +235,10 @@ namespace Bit.App.Models.Page
public string Id { get; set; }
public string Name { get; set; } = AppResources.FolderNone;
public int Count { get; set; }
public int? Count { get; set; }
public bool Folder { get; set; }
public bool Collection { get; set; }
public bool ShowCount => Count.HasValue;
}
}
}