mirror of
https://github.com/nextcloud/server.git
synced 2026-03-20 01:23:22 -04:00
Merge pull request #53983 from nextcloud/fix/files-new-folder
fix(files): new folder icon color
This commit is contained in:
commit
51a09438bf
3 changed files with 7 additions and 4 deletions
|
|
@ -43,8 +43,11 @@ export const entry = {
|
|||
id: 'newFolder',
|
||||
displayName: t('files', 'New folder'),
|
||||
enabled: (context: Folder) => Boolean(context.permissions & Permission.CREATE) && Boolean(context.permissions & Permission.READ),
|
||||
iconSvgInline: FolderPlusSvg,
|
||||
|
||||
// Make the svg icon color match the primary element color
|
||||
iconSvgInline: FolderPlusSvg.replace(/viewBox/gi, 'style="color: var(--color-primary-element)" viewBox'),
|
||||
order: 0,
|
||||
|
||||
async handler(context: Folder, content: Node[]) {
|
||||
const name = await newNodeName(t('files', 'New folder'), content)
|
||||
if (name === null) {
|
||||
|
|
|
|||
4
dist/files-init.js
vendored
4
dist/files-init.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files-init.js.map
vendored
2
dist/files-init.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue