|
|
|
|
@ -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
|
|
|
|
|
*/
|
|
|
|
|
|