Skip to content

Commit 8ca069d

Browse files
janbaumbackportbot[bot]
authored andcommitted
fix(files.js): check,ether "show folder descr." is set or not
Signed-off-by: janbaum <jan.baumgarten@tutanota.com>
1 parent f36ab79 commit 8ca069d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/helpers/files.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ export const addMenuRichWorkspace = () => {
118118
displayName: t('text', 'Add folder description'),
119119
category: NewMenuEntryCategory.Other,
120120
enabled(context) {
121+
if (!window?.OCA?.Text?.RichWorkspaceEnabled) {
122+
return false
123+
}
121124
if (Number(context.attributes['rich-workspace-file'])) {
122125
return false
123126
}

0 commit comments

Comments
 (0)