You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<script setup lang="ts">
|
|
|
|
import { MetaInj, iconMap, inject, useSidebar, useTable } from '#imports'
|
|
|
|
|
|
|
|
const meta = inject(MetaInj)!
|
|
|
|
|
|
|
|
const { deleteTable } = useTable()
|
|
|
|
|
|
|
|
const { isOpen } = useSidebar('nc-right-sidebar')
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<a-tooltip :placement="isOpen ? 'bottomRight' : 'left'">
|
|
|
|
<template #title> {{ $t('activity.deleteTable') }} </template>
|
|
|
|
|
|
|
|
<div class="nc-sidebar-right-item hover:after:bg-red-500 group">
|
|
|
|
<component :is="iconMap.delete" class="cursor-pointer" @click="deleteTable(meta)" />
|
|
|
|
</div>
|
|
|
|
</a-tooltip>
|
|
|
|
</template>
|