|
|
@ -211,13 +211,6 @@ async function onDelete(index: number) { |
|
|
|
$e('a:view:delete', { view: view.type }) |
|
|
|
$e('a:view:delete', { view: view.type }) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
onMounted(() => { |
|
|
|
|
|
|
|
notification.open({ |
|
|
|
|
|
|
|
message: 'Welcome to the View Manager', |
|
|
|
|
|
|
|
duration: 3, |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** Rename a view */ |
|
|
|
/** Rename a view */ |
|
|
|
async function onRename(index: number) { |
|
|
|
async function onRename(index: number) { |
|
|
|
// todo: validate if title is unique and not empty |
|
|
|
// todo: validate if title is unique and not empty |
|
|
@ -309,13 +302,21 @@ function onStopEdit() { |
|
|
|
<MdiContentCopy class="hidden group-hover:block text-gray-500" @click.stop="onDuplicate(i)" /> |
|
|
|
<MdiContentCopy class="hidden group-hover:block text-gray-500" @click.stop="onDuplicate(i)" /> |
|
|
|
</a-tooltip> |
|
|
|
</a-tooltip> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a-popconfirm |
|
|
|
|
|
|
|
placement="left" |
|
|
|
|
|
|
|
:title="$t('msg.info.deleteProject')" |
|
|
|
|
|
|
|
:ok-text="$t('general.yes')" |
|
|
|
|
|
|
|
:cancel-text="$t('general.no')" |
|
|
|
|
|
|
|
@confirm="onDelete(i)" |
|
|
|
|
|
|
|
> |
|
|
|
<a-tooltip placement="left"> |
|
|
|
<a-tooltip placement="left"> |
|
|
|
<template #title> |
|
|
|
<template #title> |
|
|
|
{{ $t('activity.deleteView') }} |
|
|
|
{{ $t('activity.deleteView') }} |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<MdiTrashCan class="hidden group-hover:block text-red-500" @click.stop="onDelete(i)" /> |
|
|
|
<MdiTrashCan class="hidden group-hover:block text-red-500" @click.stop /> |
|
|
|
</a-tooltip> |
|
|
|
</a-tooltip> |
|
|
|
|
|
|
|
</a-popconfirm> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</a-menu-item> |
|
|
|
</a-menu-item> |
|
|
|