mirror of
https://github.com/bitwarden/mobile
synced 2025-12-16 08:13:20 +00:00
helper for empty header value
This commit is contained in:
@@ -50,7 +50,7 @@ namespace Bit.App.Pages
|
||||
NoFooter = true,
|
||||
Root = new TableRoot
|
||||
{
|
||||
new TableSection(" ")
|
||||
new TableSection(Helpers.GetEmptyTableSectionTitle())
|
||||
{
|
||||
PasswordCell
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ namespace Bit.App.Pages
|
||||
VerticalOptions = LayoutOptions.Start,
|
||||
Root = new TableRoot
|
||||
{
|
||||
new TableSection(" ")
|
||||
new TableSection(Helpers.GetEmptyTableSectionTitle())
|
||||
{
|
||||
EmailCell,
|
||||
PasswordCell
|
||||
|
||||
@@ -130,7 +130,7 @@ namespace Bit.App.Pages
|
||||
TokenCell.Entry.ReturnType = ReturnType.Go;
|
||||
|
||||
var table = new TwoFactorTable(
|
||||
new TableSection(" ")
|
||||
new TableSection(Helpers.GetEmptyTableSectionTitle())
|
||||
{
|
||||
TokenCell,
|
||||
RememberCell
|
||||
@@ -209,7 +209,7 @@ namespace Bit.App.Pages
|
||||
});
|
||||
|
||||
var table = new TwoFactorTable(
|
||||
new TableSection(" ")
|
||||
new TableSection(Helpers.GetEmptyTableSectionTitle())
|
||||
{
|
||||
RememberCell
|
||||
});
|
||||
@@ -240,7 +240,7 @@ namespace Bit.App.Pages
|
||||
};
|
||||
|
||||
var table = new TwoFactorTable(
|
||||
new TableSection(" ")
|
||||
new TableSection(Helpers.GetEmptyTableSectionTitle())
|
||||
{
|
||||
RememberCell
|
||||
});
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace Bit.App.Pages
|
||||
VerticalOptions = LayoutOptions.Start,
|
||||
Root = new TableRoot
|
||||
{
|
||||
new TableSection(" ")
|
||||
new TableSection(Helpers.GetEmptyTableSectionTitle())
|
||||
{
|
||||
EmailCell
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ namespace Bit.App.Pages
|
||||
{
|
||||
Root = new TableRoot
|
||||
{
|
||||
new TableSection(" ")
|
||||
new TableSection(Helpers.GetEmptyTableSectionTitle())
|
||||
{
|
||||
EmailCell,
|
||||
PasswordCell
|
||||
@@ -89,7 +89,7 @@ namespace Bit.App.Pages
|
||||
NoHeader = true,
|
||||
Root = new TableRoot
|
||||
{
|
||||
new TableSection(" ")
|
||||
new TableSection(Helpers.GetEmptyTableSectionTitle())
|
||||
{
|
||||
ConfirmPasswordCell,
|
||||
PasswordHintCell
|
||||
|
||||
@@ -5,6 +5,7 @@ using Bit.App.Abstractions;
|
||||
using XLabs.Ioc;
|
||||
using Bit.App.Resources;
|
||||
using FFImageLoading.Forms;
|
||||
using Bit.App.Utilities;
|
||||
|
||||
namespace Bit.App.Pages
|
||||
{
|
||||
@@ -59,7 +60,7 @@ namespace Bit.App.Pages
|
||||
HasUnevenRows = true,
|
||||
Root = new TableRoot
|
||||
{
|
||||
new TableSection(" ")
|
||||
new TableSection(Helpers.GetEmptyTableSectionTitle())
|
||||
{
|
||||
CreditsCell
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ using Plugin.Connectivity.Abstractions;
|
||||
using Xamarin.Forms;
|
||||
using XLabs.Ioc;
|
||||
using System.Linq;
|
||||
using Bit.App.Utilities;
|
||||
|
||||
namespace Bit.App.Pages
|
||||
{
|
||||
@@ -42,7 +43,7 @@ namespace Bit.App.Pages
|
||||
HasUnevenRows = true,
|
||||
Root = new TableRoot
|
||||
{
|
||||
new TableSection(" ")
|
||||
new TableSection(Helpers.GetEmptyTableSectionTitle())
|
||||
{
|
||||
NameCell
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ using Plugin.Connectivity.Abstractions;
|
||||
using Xamarin.Forms;
|
||||
using XLabs.Ioc;
|
||||
using System.Linq;
|
||||
using Bit.App.Utilities;
|
||||
|
||||
namespace Bit.App.Pages
|
||||
{
|
||||
@@ -55,11 +56,11 @@ namespace Bit.App.Pages
|
||||
VerticalOptions = LayoutOptions.Start,
|
||||
Root = new TableRoot
|
||||
{
|
||||
new TableSection(" ")
|
||||
new TableSection(Helpers.GetEmptyTableSectionTitle())
|
||||
{
|
||||
NameCell
|
||||
},
|
||||
new TableSection(" ")
|
||||
new TableSection(Helpers.GetEmptyTableSectionTitle())
|
||||
{
|
||||
DeleteCell
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ using Xamarin.Forms;
|
||||
using XLabs.Ioc;
|
||||
using Bit.App.Controls;
|
||||
using Plugin.Settings.Abstractions;
|
||||
using Bit.App.Utilities;
|
||||
|
||||
namespace Bit.App.Pages
|
||||
{
|
||||
@@ -49,7 +50,7 @@ namespace Bit.App.Pages
|
||||
{
|
||||
Root = new TableRoot
|
||||
{
|
||||
new TableSection(" ")
|
||||
new TableSection(Helpers.GetEmptyTableSectionTitle())
|
||||
{
|
||||
WebsiteIconsCell
|
||||
}
|
||||
@@ -66,7 +67,7 @@ namespace Bit.App.Pages
|
||||
{
|
||||
Root = new TableRoot
|
||||
{
|
||||
new TableSection(" ")
|
||||
new TableSection(Helpers.GetEmptyTableSectionTitle())
|
||||
{
|
||||
CopyTotpCell
|
||||
}
|
||||
@@ -83,7 +84,7 @@ namespace Bit.App.Pages
|
||||
{
|
||||
Root = new TableRoot
|
||||
{
|
||||
new TableSection(" ")
|
||||
new TableSection(Helpers.GetEmptyTableSectionTitle())
|
||||
{
|
||||
AnalyticsCell
|
||||
}
|
||||
@@ -150,7 +151,7 @@ namespace Bit.App.Pages
|
||||
{
|
||||
Root = new TableRoot
|
||||
{
|
||||
new TableSection(" ")
|
||||
new TableSection(Helpers.GetEmptyTableSectionTitle())
|
||||
{
|
||||
AutofillPersistNotificationCell
|
||||
}
|
||||
@@ -172,7 +173,7 @@ namespace Bit.App.Pages
|
||||
{
|
||||
Root = new TableRoot
|
||||
{
|
||||
new TableSection(" ")
|
||||
new TableSection(Helpers.GetEmptyTableSectionTitle())
|
||||
{
|
||||
AutofillPasswordFieldCell
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ using Xamarin.Forms;
|
||||
using Bit.App.Abstractions;
|
||||
using XLabs.Ioc;
|
||||
using Bit.App.Resources;
|
||||
using Bit.App.Utilities;
|
||||
|
||||
namespace Bit.App.Pages
|
||||
{
|
||||
@@ -38,7 +39,7 @@ namespace Bit.App.Pages
|
||||
{
|
||||
Root = new TableRoot
|
||||
{
|
||||
new TableSection(" ")
|
||||
new TableSection(Helpers.GetEmptyTableSectionTitle())
|
||||
{
|
||||
EmailCell
|
||||
}
|
||||
@@ -61,7 +62,7 @@ namespace Bit.App.Pages
|
||||
NoHeader = true,
|
||||
Root = new TableRoot
|
||||
{
|
||||
new TableSection(" ")
|
||||
new TableSection(Helpers.GetEmptyTableSectionTitle())
|
||||
{
|
||||
WebsiteCell
|
||||
}
|
||||
@@ -84,7 +85,7 @@ namespace Bit.App.Pages
|
||||
NoHeader = true,
|
||||
Root = new TableRoot
|
||||
{
|
||||
new TableSection(" ")
|
||||
new TableSection(Helpers.GetEmptyTableSectionTitle())
|
||||
{
|
||||
BugCell
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ using Bit.App.Resources;
|
||||
using Xamarin.Forms;
|
||||
using XLabs.Ioc;
|
||||
using FFImageLoading.Forms;
|
||||
using Bit.App.Utilities;
|
||||
|
||||
namespace Bit.App.Pages
|
||||
{
|
||||
@@ -38,7 +39,7 @@ namespace Bit.App.Pages
|
||||
ShareCell = new ToolsViewCell(AppResources.ShareVault, AppResources.ShareVaultDescription, "share_tools.png");
|
||||
ImportCell = new ToolsViewCell(AppResources.ImportItems, AppResources.ImportItemsDescription, "cloudup.png");
|
||||
|
||||
var section = new TableSection(" ") { GeneratorCell };
|
||||
var section = new TableSection(Helpers.GetEmptyTableSectionTitle()) { GeneratorCell };
|
||||
|
||||
if(Device.RuntimePlatform == Device.iOS)
|
||||
{
|
||||
|
||||
@@ -74,7 +74,7 @@ namespace Bit.App.Pages
|
||||
NoHeader = true,
|
||||
Root = new TableRoot
|
||||
{
|
||||
new TableSection(" ")
|
||||
new TableSection(Helpers.GetEmptyTableSectionTitle())
|
||||
{
|
||||
RegenerateCell,
|
||||
CopyCell
|
||||
|
||||
@@ -8,6 +8,7 @@ using Plugin.Connectivity.Abstractions;
|
||||
using Plugin.Settings.Abstractions;
|
||||
using Xamarin.Forms;
|
||||
using XLabs.Ioc;
|
||||
using Bit.App.Utilities;
|
||||
|
||||
namespace Bit.App.Pages
|
||||
{
|
||||
@@ -77,19 +78,19 @@ namespace Bit.App.Pages
|
||||
EnableSelection = false,
|
||||
Root = new TableRoot
|
||||
{
|
||||
new TableSection(" ")
|
||||
new TableSection(Helpers.GetEmptyTableSectionTitle())
|
||||
{
|
||||
UppercaseCell,
|
||||
LowercaseCell,
|
||||
NumbersCell,
|
||||
SpecialCell
|
||||
},
|
||||
new TableSection(" ")
|
||||
new TableSection(Helpers.GetEmptyTableSectionTitle())
|
||||
{
|
||||
NumbersMinCell,
|
||||
SpecialMinCell
|
||||
},
|
||||
new TableSection(" ")
|
||||
new TableSection(Helpers.GetEmptyTableSectionTitle())
|
||||
{
|
||||
AvoidAmbiguousCell
|
||||
}
|
||||
|
||||
@@ -359,7 +359,7 @@ namespace Bit.App.Pages
|
||||
NameCell
|
||||
};
|
||||
|
||||
MiddleSection = new TableSection(" ")
|
||||
MiddleSection = new TableSection(Helpers.GetEmptyTableSectionTitle())
|
||||
{
|
||||
FolderCell,
|
||||
FavoriteCell
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace Bit.App.Pages
|
||||
|
||||
private void Init()
|
||||
{
|
||||
FieldsSection = new TableSection(" ");
|
||||
FieldsSection = new TableSection(Helpers.GetEmptyTableSectionTitle());
|
||||
|
||||
Table = new ExtendedTableView
|
||||
{
|
||||
|
||||
@@ -165,7 +165,7 @@ namespace Bit.App.Pages
|
||||
NameCell
|
||||
};
|
||||
|
||||
MiddleSection = new TableSection(" ")
|
||||
MiddleSection = new TableSection(Helpers.GetEmptyTableSectionTitle())
|
||||
{
|
||||
FolderCell,
|
||||
FavoriteCell,
|
||||
@@ -415,7 +415,7 @@ namespace Bit.App.Pages
|
||||
{
|
||||
NotesCell
|
||||
},
|
||||
new TableSection(" ")
|
||||
new TableSection(Helpers.GetEmptyTableSectionTitle())
|
||||
{
|
||||
DeleteCell
|
||||
}
|
||||
|
||||
@@ -56,5 +56,15 @@ namespace Bit.App.Utilities
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public static string GetEmptyTableSectionTitle()
|
||||
{
|
||||
if(Device.RuntimePlatform == Device.iOS)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return " ";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user