mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-30 10:39:43 +02:00
feat: Group and household deletion tooltips (#4414)
This commit is contained in:
parent
61511d17d3
commit
bf2a69735d
3 changed files with 45 additions and 29 deletions
|
@ -1271,7 +1271,9 @@
|
||||||
"debug-openai-services": "Debug OpenAI Services",
|
"debug-openai-services": "Debug OpenAI Services",
|
||||||
"debug-openai-services-description": "Use this page to debug OpenAI services. You can test your OpenAI connection and see the results here. If you have image services enabled, you can also provide an image.",
|
"debug-openai-services-description": "Use this page to debug OpenAI services. You can test your OpenAI connection and see the results here. If you have image services enabled, you can also provide an image.",
|
||||||
"run-test": "Run Test",
|
"run-test": "Run Test",
|
||||||
"test-results": "Test Results"
|
"test-results": "Test Results",
|
||||||
|
"group-delete-note": "Groups with users or households cannot be deleted",
|
||||||
|
"household-delete-note": "Households with users cannot be deleted"
|
||||||
},
|
},
|
||||||
"profile": {
|
"profile": {
|
||||||
"welcome-user": "👋 Welcome, {0}!",
|
"welcome-user": "👋 Welcome, {0}!",
|
||||||
|
|
|
@ -47,20 +47,27 @@
|
||||||
{{ item.users.length }}
|
{{ item.users.length }}
|
||||||
</template>
|
</template>
|
||||||
<template #item.actions="{ item }">
|
<template #item.actions="{ item }">
|
||||||
<v-btn
|
<v-tooltip bottom :disabled="!(item && (item.households.length > 0 || item.users.length > 0))">
|
||||||
:disabled="item && (item.households.length > 0 || item.users.length > 0)"
|
<template #activator="{ on, attrs }">
|
||||||
class="mr-1"
|
<div v-bind="attrs" v-on="on" >
|
||||||
icon
|
<v-btn
|
||||||
color="error"
|
:disabled="item && (item.households.length > 0 || item.users.length > 0)"
|
||||||
@click.stop="
|
class="mr-1"
|
||||||
confirmDialog = true;
|
icon
|
||||||
deleteTarget = item.id;
|
color="error"
|
||||||
"
|
@click.stop="
|
||||||
>
|
confirmDialog = true;
|
||||||
<v-icon>
|
deleteTarget = item.id;
|
||||||
{{ $globals.icons.delete }}
|
"
|
||||||
</v-icon>
|
>
|
||||||
</v-btn>
|
<v-icon>
|
||||||
|
{{ $globals.icons.delete }}
|
||||||
|
</v-icon>
|
||||||
|
</v-btn>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<span>{{ $tc("admin.group-delete-note") }}</span>
|
||||||
|
</v-tooltip>
|
||||||
</template>
|
</template>
|
||||||
</v-data-table>
|
</v-data-table>
|
||||||
<v-divider></v-divider>
|
<v-divider></v-divider>
|
||||||
|
|
|
@ -63,20 +63,27 @@
|
||||||
{{ item.webhooks.length > 0 ? $t("general.yes") : $t("general.no") }}
|
{{ item.webhooks.length > 0 ? $t("general.yes") : $t("general.no") }}
|
||||||
</template>
|
</template>
|
||||||
<template #item.actions="{ item }">
|
<template #item.actions="{ item }">
|
||||||
<v-btn
|
<v-tooltip bottom :disabled="!(item && item.users.length > 0)">
|
||||||
:disabled="item && item.users.length > 0"
|
<template #activator="{ on, attrs }">
|
||||||
class="mr-1"
|
<div v-bind="attrs" v-on="on" >
|
||||||
icon
|
<v-btn
|
||||||
color="error"
|
:disabled="item && item.users.length > 0"
|
||||||
@click.stop="
|
class="mr-1"
|
||||||
confirmDialog = true;
|
icon
|
||||||
deleteTarget = item.id;
|
color="error"
|
||||||
"
|
@click.stop="
|
||||||
>
|
confirmDialog = true;
|
||||||
<v-icon>
|
deleteTarget = item.id;
|
||||||
{{ $globals.icons.delete }}
|
"
|
||||||
</v-icon>
|
>
|
||||||
</v-btn>
|
<v-icon>
|
||||||
|
{{ $globals.icons.delete }}
|
||||||
|
</v-icon>
|
||||||
|
</v-btn>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<span>{{ $tc("admin.household-delete-note") }}</span>
|
||||||
|
</v-tooltip>
|
||||||
</template>
|
</template>
|
||||||
</v-data-table>
|
</v-data-table>
|
||||||
<v-divider></v-divider>
|
<v-divider></v-divider>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue