mirror of
https://github.com/nextcloud/server.git
synced 2026-06-06 07:13:23 -04:00
Merge pull request #45684 from nextcloud/feat/user-row-action-svg
This commit is contained in:
commit
ef01dc72c1
7 changed files with 16 additions and 8 deletions
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
6
dist/settings-users-3239.js
vendored
6
dist/settings-users-3239.js
vendored
File diff suppressed because one or more lines are too long
2
dist/settings-users-3239.js.map
vendored
2
dist/settings-users-3239.js.map
vendored
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
1
package-lock.json
generated
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue