0-9 is now #

This commit is contained in:
Kyle Spearrin 2017-11-27 22:16:06 -05:00
parent 0f387a139b
commit 616893955f
2 changed files with 7 additions and 7 deletions

View file

@ -37,7 +37,7 @@ namespace Bit.App.Controls
Style = (Style)Application.Current.Resources["text-muted"],
HorizontalOptions = LayoutOptions.End
};
CountLabel.SetBinding(Label.TextProperty, nameof(VaultListPageModel.Grouping.CipherCount));
CountLabel.SetBinding(Label.TextProperty, nameof(VaultListPageModel.Grouping.Count));
var stackLayout = new StackLayout
{

View file

@ -31,7 +31,7 @@ namespace Bit.App.Models.Page
}
else if(Char.IsDigit(Name[0]))
{
NameGroup = "0 - 9";
NameGroup = "#";
}
else
{
@ -192,15 +192,15 @@ namespace Bit.App.Models.Page
Id = null;
Name = name;
Folder = true;
CipherCount = count;
Count = count;
}
public Grouping(Models.Folder folder, int count)
public Grouping(Folder folder, int count)
{
Id = folder.Id;
Name = folder.Name?.Decrypt();
Folder = true;
CipherCount = count;
Count = count;
}
public Grouping(Collection collection, int count)
@ -208,12 +208,12 @@ namespace Bit.App.Models.Page
Id = collection.Id;
Name = collection.Name?.Decrypt(collection.OrganizationId);
Collection = true;
CipherCount = count;
Count = count;
}
public string Id { get; set; }
public string Name { get; set; } = AppResources.FolderNone;
public int CipherCount { get; set; }
public int Count { get; set; }
public bool Folder { get; set; }
public bool Collection { get; set; }
}