Skip to content

Commit b922b4b

Browse files
committed
fix(files): Change icons+wording for adding text doc and folder description
Fixes: #5535 Signed-off-by: Jonas <jonas@freesources.org>
1 parent 4381329 commit b922b4b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/helpers/files.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import { showSuccess, showError } from '@nextcloud/dialogs'
3333
import axios from '@nextcloud/axios'
3434
import { dirname } from 'path'
3535

36-
import FilePlusSvg from '@mdi/svg/svg/file-plus.svg'
36+
import TextSvg from '@mdi/svg/svg/text.svg'
3737

3838
const FILE_ACTION_IDENTIFIER = 'Edit with text app'
3939

@@ -134,14 +134,14 @@ export const addMenuRichWorkspace = () => {
134134
const descriptionFile = t('text', 'Readme') + '.' + loadState('text', 'default_file_extension')
135135
addNewFileMenuEntry({
136136
id: 'rich-workspace-init',
137-
displayName: t('text', 'Add description'),
137+
displayName: t('text', 'Add folder description'),
138138
enabled(context) {
139139
if (Number(context.attributes['rich-workspace-file'])) {
140140
return false
141141
}
142142
return (context.permissions & Permission.CREATE) !== 0
143143
},
144-
iconSvgInline: FilePlusSvg,
144+
iconSvgInline: TextSvg,
145145
async handler(context, content) {
146146
const contentNames = content.map((node) => node.basename)
147147

src/public.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const newRichWorkspaceFileMenuPlugin = {
2626
// register the new menu entry
2727
menu.addMenuEntry({
2828
id: 'rich-workspace-init',
29-
displayName: t('text', 'Add description'),
29+
displayName: t('text', 'Add folder description'),
3030
templateName: descriptionFile,
3131
iconClass: 'icon-rename',
3232
fileType: 'file',

0 commit comments

Comments
 (0)