Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Update filter type names to singular in web app (#1473)
Leendert de Borst1c2da5c69831
diff --git a/apps/server/AliasVault.Client/Main/Pages/Items/Home.razor b/apps/server/AliasVault.Client/Main/Pages/Items/Home.razorindex 8db3a31ed..5c02837e2 100644--- a/apps/server/AliasVault.Client/Main/Pages/Items/Home.razor+++ b/apps/server/AliasVault.Client/Main/Pages/Items/Home.razor@@ -59,25 +59,25 @@<svg class="w-5 h-5 @(FilterType == ItemFilterType.Login ? "text-orange-500 dark:text-orange-400" : "text-gray-400 dark:text-gray-500")" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z" /></svg>- @Localizer["FilterLoginOption"]+ @ItemTypeSelectorLocalizer["TypeLogin"]</button><button @onclick="() => SetFilter(ItemFilterType.Alias)" class="w-full text-left px-4 py-2 text-sm hover:bg-gray-100 dark:hover:bg-gray-600 flex items-center gap-2 @(FilterType == ItemFilterType.Alias ? "bg-orange-50 dark:bg-orange-900/20 text-orange-600 dark:text-orange-400" : "text-gray-700 dark:text-gray-300")"><svg class="w-5 h-5 @(FilterType == ItemFilterType.Alias ? "text-orange-500 dark:text-orange-400" : "text-gray-400 dark:text-gray-500")" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" /></svg>- @Localizer["FilterAliasOption"]+ @ItemTypeSelectorLocalizer["TypeAlias"]</button><button @onclick="() => SetFilter(ItemFilterType.CreditCard)" class="w-full text-left px-4 py-2 text-sm hover:bg-gray-100 dark:hover:bg-gray-600 flex items-center gap-2 @(FilterType == ItemFilterType.CreditCard ? "bg-orange-50 dark:bg-orange-900/20 text-orange-600 dark:text-orange-400" : "text-gray-700 dark:text-gray-300")"><svg class="w-5 h-5 @(FilterType == ItemFilterType.CreditCard ? "text-orange-500 dark:text-orange-400" : "text-gray-400 dark:text-gray-500")" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z" /></svg>- @Localizer["FilterCreditCardOption"]+ @ItemTypeSelectorLocalizer["TypeCreditCard"]</button><button @onclick="() => SetFilter(ItemFilterType.Note)" class="w-full text-left px-4 py-2 text-sm hover:bg-gray-100 dark:hover:bg-gray-600 flex items-center gap-2 @(FilterType == ItemFilterType.Note ? "bg-orange-50 dark:bg-orange-900/20 text-orange-600 dark:text-orange-400" : "text-gray-700 dark:text-gray-300")"><svg class="w-5 h-5 @(FilterType == ItemFilterType.Note ? "text-orange-500 dark:text-orange-400" : "text-gray-400 dark:text-gray-500")" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" /></svg>- @Localizer["FilterNoteOption"]+ @ItemTypeSelectorLocalizer["TypeNote"]</button><div class="border-t border-gray-200 dark:border-gray-600 my-1"></div>@@ -330,6 +330,7 @@ else@code {private IStringLocalizer Localizer => LocalizerFactory.Create("Pages.Main.Items.Home", "AliasVault.Client");+ private IStringLocalizer ItemTypeSelectorLocalizer => LocalizerFactory.Create("Components.Main.Items.ItemTypeSelector", "AliasVault.Client");/// <summary>/// Gets or sets the folder ID from the URL.@@ -523,10 +524,10 @@ else{ItemFilterType.Passkeys => Localizer["FilterPasskeysOption"],ItemFilterType.Attachments => Localizer["FilterAttachmentsOption"],- ItemFilterType.Login => Localizer["FilterLoginOption"],- ItemFilterType.Alias => Localizer["FilterAliasOption"],- ItemFilterType.CreditCard => Localizer["FilterCreditCardOption"],- ItemFilterType.Note => Localizer["FilterNoteOption"],+ ItemFilterType.Login => ItemTypeSelectorLocalizer["TypeLogin"],+ ItemFilterType.Alias => ItemTypeSelectorLocalizer["TypeAlias"],+ ItemFilterType.CreditCard => ItemTypeSelectorLocalizer["TypeCreditCard"],+ ItemFilterType.Note => ItemTypeSelectorLocalizer["TypeNote"],_ => Localizer["PageTitle"],};}diff --git a/apps/server/AliasVault.Client/Resources/Pages/Main/Items/Home.en.resx b/apps/server/AliasVault.Client/Resources/Pages/Main/Items/Home.en.resxindex d863765cb..6e0a76929 100644--- a/apps/server/AliasVault.Client/Resources/Pages/Main/Items/Home.en.resx+++ b/apps/server/AliasVault.Client/Resources/Pages/Main/Items/Home.en.resx@@ -187,24 +187,6 @@<comment>Empty state message when folder has no items</comment></data>- <!-- Item Type Filters -->- <data name="FilterLoginOption" xml:space="preserve">- <value>Logins</value>- <comment>Filter option to show only Login items</comment>- </data>- <data name="FilterAliasOption" xml:space="preserve">- <value>Aliases</value>- <comment>Filter option to show only Alias items</comment>- </data>- <data name="FilterCreditCardOption" xml:space="preserve">- <value>Credit Cards</value>- <comment>Filter option to show only Credit Card items</comment>- </data>- <data name="FilterNoteOption" xml:space="preserve">- <value>Notes</value>- <comment>Filter option to show only Note items</comment>- </data>-<!-- Folder Management --><data name="NewFolder" xml:space="preserve"><value>New Folder</value>