|
3 | 3 | * SPDX-License-Identifier: AGPL-3.0-or-later |
4 | 4 | */ |
5 | 5 |
|
| 6 | +import { getCurrentUser } from '@nextcloud/auth' |
| 7 | +import { showSuccess, showError } from '@nextcloud/dialogs' |
6 | 8 | import { emit } from '@nextcloud/event-bus' |
7 | 9 | import { Header, addNewFileMenuEntry, Permission, File, NewMenuEntryCategory } from '@nextcloud/files' |
8 | | -import { imagePath } from '@nextcloud/router' |
9 | 10 | import { loadState } from '@nextcloud/initial-state' |
| 11 | +import { imagePath } from '@nextcloud/router' |
| 12 | +import { dirname } from 'path' |
10 | 13 |
|
11 | 14 | import { getSharingToken } from './token.js' |
12 | 15 | import { openMimetypes } from './mime.js' |
13 | 16 | import store from '../store/index.js' |
14 | | -import { getCurrentUser } from '@nextcloud/auth' |
15 | | -import { showSuccess, showError } from '@nextcloud/dialogs' |
16 | 17 | import axios from '@nextcloud/axios' |
17 | | -import { dirname } from 'path' |
18 | 18 |
|
19 | | -import TextSvg from '@mdi/svg/svg/text.svg' |
| 19 | +import TextSvg from '@mdi/svg/svg/text.svg?raw' |
20 | 20 |
|
21 | 21 | const FILE_ACTION_IDENTIFIER = 'Edit with text app' |
22 | 22 |
|
@@ -118,8 +118,7 @@ export const addMenuRichWorkspace = () => { |
118 | 118 | addNewFileMenuEntry({ |
119 | 119 | id: 'rich-workspace-init', |
120 | 120 | displayName: t('text', 'Add folder description'), |
121 | | - // FIXME Move back to other once https://github.com/nextcloud-libraries/nextcloud-upload/pull/1269 is available in server |
122 | | - category: NewMenuEntryCategory.CreateNew, |
| 121 | + category: NewMenuEntryCategory.Other, |
123 | 122 | enabled(context) { |
124 | 123 | if (Number(context.attributes['rich-workspace-file'])) { |
125 | 124 | return false |
|
0 commit comments