mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-31 02:03:35 -04:00 
			
		
		
		
	feat: Group and household deletion tooltips (#4414)
This commit is contained in:
		| @@ -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> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user