Merge pull request #45684 from nextcloud/feat/user-row-action-svg

This commit is contained in:
John Molakvoæ 2024-06-07 08:48:11 +02:00 committed by GitHub
commit ef01dc72c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 16 additions and 8 deletions

View file

@ -23,6 +23,9 @@
close-after-click
@click="(event) => action(event, { ...user })">
{{ text }}
<template v-if="isSvg(icon)" #icon>
<NcIconSvgWrapper :svg="icon" aria-hidden="true" />
</template>
</NcActionButton>
</NcActions>
</template>
@ -30,6 +33,7 @@
<script lang="ts">
import type { PropType } from 'vue'
import { defineComponent } from 'vue'
import isSvg from 'is-svg'
import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js'
import NcActions from '@nextcloud/vue/dist/Components/NcActions.js'
@ -102,6 +106,8 @@ export default defineComponent({
},
methods: {
isSvg,
/**
* Toggle edit mode by emitting the update event
*/

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
package-lock.json generated
View file

@ -49,6 +49,7 @@
"escape-html": "^1.0.3",
"focus-trap": "^7.5.4",
"handlebars": "^4.7.7",
"is-svg": "^5.0.1",
"jquery": "~3.7",
"jquery-ui": "^1.13.2",
"jquery-ui-dist": "^1.13.2",

View file

@ -76,6 +76,7 @@
"escape-html": "^1.0.3",
"focus-trap": "^7.5.4",
"handlebars": "^4.7.7",
"is-svg": "^5.0.1",
"jquery": "~3.7",
"jquery-ui": "^1.13.2",
"jquery-ui-dist": "^1.13.2",