diff --git a/lib/Service/SettingsService.php b/lib/Service/SettingsService.php
index 22b341ee4..e7674d272 100644
--- a/lib/Service/SettingsService.php
+++ b/lib/Service/SettingsService.php
@@ -69,6 +69,12 @@ public function __construct(
return '.' . $out;
},
],
+ 'showCategoryInList' => [
+ 'default' => true,
+ 'validate' => function ($value) {
+ return filter_var($value, FILTER_VALIDATE_BOOLEAN);
+ },
+ ],
];
}
diff --git a/src/components/AppSettings.vue b/src/components/AppSettings.vue
index 02930c487..e53df990f 100644
--- a/src/components/AppSettings.vue
+++ b/src/components/AppSettings.vue
@@ -34,6 +34,14 @@
+
+ {{ t('notes', 'Show category names in the list of all notes') }}
+
+
@@ -41,7 +41,7 @@
@@ -142,6 +142,10 @@ export default {
}
},
+ showCategoryTitles() {
+ return this.category === null && store.state.app.settings.showCategoryInList !== false
+ },
+
// group notes by time ("All notes") or by category (if category chosen)
groupedNotes() {
if (this.category === null) {