Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Tweak empty folder message (#1404)

Leendert de Borst2b1029e7f2b8
diff --git a/apps/browser-extension/src/i18n/locales/en.json b/apps/browser-extension/src/i18n/locales/en.json
index a2baec38a..43ab4b46f 100644
--- a/apps/browser-extension/src/i18n/locales/en.json
+++ b/apps/browser-extension/src/i18n/locales/en.json
@@ -212,7 +212,7 @@
"noAttachmentsFound": "No items with attachments found",
"noItemsOfTypeFound": "No {{type}} items found",
"noMatchingItems": "No matching items found",
- "emptyFolderHint": "To move items to this folder, edit the item and tap the folder icon in the name field.",
+ "emptyFolderHint": "This folder is empty. To move items to this folder, edit the item and tap the folder icon in the name field.",
"deleteFolder": "Delete Folder",
"deleteFolderKeepItems": "Delete folder only",
"deleteFolderKeepItemsDescription": "Items will be moved back to the main list.",
diff --git a/apps/mobile-app/app/(tabs)/items/add-edit.tsx b/apps/mobile-app/app/(tabs)/items/add-edit.tsx
index 1e38d3671..27df10c33 100644
--- a/apps/mobile-app/app/(tabs)/items/add-edit.tsx
+++ b/apps/mobile-app/app/(tabs)/items/add-edit.tsx
@@ -24,7 +24,7 @@ import { useVaultMutate } from '@/hooks/useVaultMutate';
import { AddFieldMenu, type OptionalSection } from '@/components/form/AddFieldMenu';
import { AdvancedPasswordField } from '@/components/form/AdvancedPasswordField';
import { EmailDomainField } from '@/components/form/EmailDomainField';
-import { FormField, FormFieldRef } from '@/components/form/FormField';
+import { FormField } from '@/components/form/FormField';
import { FormSection } from '@/components/form/FormSection';
import { HiddenField } from '@/components/form/HiddenField';
import { ItemNameField, ItemNameFieldRef } from '@/components/form/ItemNameField';
diff --git a/apps/mobile-app/app/(tabs)/items/folder/[id].tsx b/apps/mobile-app/app/(tabs)/items/folder/[id].tsx
index 58aa230e9..c2c4a71e5 100644
--- a/apps/mobile-app/app/(tabs)/items/folder/[id].tsx
+++ b/apps/mobile-app/app/(tabs)/items/folder/[id].tsx
@@ -485,13 +485,11 @@ export default function FolderViewScreen(): React.ReactNode {
return (
<View>
- <Text style={styles.emptyText}>
- {searchQuery
- ? t('items.noMatchingItems')
- : t('items.folders.emptyFolder')
- }
- </Text>
- {!searchQuery && (
+ {searchQuery.length > 0 ? (
+ <Text style={styles.emptyText}>
+ {t('items.noMatchingItems')}
+ </Text>
+ ) : (
<Text style={styles.emptyHint}>
{t('items.folders.emptyFolderHint')}
</Text>
diff --git a/apps/mobile-app/i18n/locales/en.json b/apps/mobile-app/i18n/locales/en.json
index 1128c347c..06d891e2f 100644
--- a/apps/mobile-app/i18n/locales/en.json
+++ b/apps/mobile-app/i18n/locales/en.json
@@ -610,7 +610,7 @@
"deleteFolderKeepItemsDescription": "Items will be moved back to the main list.",
"deleteFolderAndItems": "Delete folder and all items",
"deleteFolderAndItemsDescription": "{{count}} item(s) will be moved to Recently Deleted.",
- "emptyFolderHint": "To move items to this folder, edit the item and select this folder.",
+ "emptyFolderHint": "This folder is empty. To move items to this folder, edit the item and select this folder.",
"noFolder": "No Folder",
"selectFolder": "Select Folder"
}