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