mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-31 10:13:32 -04:00 
			
		
		
		
	fix: remove group storage capacity from profile page (#2798)
This commit is contained in:
		| @@ -55,7 +55,7 @@ | |||||||
|         <p>{{ $t('profile.account-summary-description') }}</p> |         <p>{{ $t('profile.account-summary-description') }}</p> | ||||||
|       </div> |       </div> | ||||||
|       <v-row tag="section"> |       <v-row tag="section"> | ||||||
|         <v-col cols="12" sm="12" md="6"> |         <v-col cols="12" sm="12" md="12"> | ||||||
|           <v-card outlined> |           <v-card outlined> | ||||||
|             <v-card-title class="headline pb-0"> {{ $t('profile.group-statistics') }} </v-card-title> |             <v-card-title class="headline pb-0"> {{ $t('profile.group-statistics') }} </v-card-title> | ||||||
|             <v-card-text class="py-0"> |             <v-card-text class="py-0"> | ||||||
| @@ -75,22 +75,6 @@ | |||||||
|             </v-card-text> |             </v-card-text> | ||||||
|           </v-card> |           </v-card> | ||||||
|         </v-col> |         </v-col> | ||||||
|         <v-col cols="12" sm="12" md="6" class="d-flex align-strart"> |  | ||||||
|           <v-card outlined> |  | ||||||
|             <v-card-title class="headline pb-0"> {{ $t('profile.storage-capacity') }} </v-card-title> |  | ||||||
|             <v-card-text class="py-0"> |  | ||||||
|               {{ $t('profile.storage-capacity-description') }} |  | ||||||
|               <strong> {{ $t('general.this-feature-is-currently-inactive') }}</strong> |  | ||||||
|             </v-card-text> |  | ||||||
|             <v-card-text> |  | ||||||
|               <v-progress-linear :value="storageUsedPercentage" color="accent" class="rounded" height="30"> |  | ||||||
|                 <template #default> |  | ||||||
|                   <strong> {{ storageText }} </strong> |  | ||||||
|                 </template> |  | ||||||
|               </v-progress-linear> |  | ||||||
|             </v-card-text> |  | ||||||
|           </v-card> |  | ||||||
|         </v-col> |  | ||||||
|       </v-row> |       </v-row> | ||||||
|     </section> |     </section> | ||||||
|     <v-divider class="my-7"></v-divider> |     <v-divider class="my-7"></v-divider> | ||||||
| @@ -344,33 +328,8 @@ export default defineComponent({ | |||||||
|       return statsTo.value[key] ?? "unknown"; |       return statsTo.value[key] ?? "unknown"; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     const storage = useAsync(async () => { |  | ||||||
|       const { data } = await api.groups.storage(); |  | ||||||
|  |  | ||||||
|       if (data) { |  | ||||||
|         return data; |  | ||||||
|       } |  | ||||||
|     }, useAsyncKey()); |  | ||||||
|  |  | ||||||
|     const storageUsedPercentage = computed(() => { |  | ||||||
|       if (!storage.value) { |  | ||||||
|         return 0; |  | ||||||
|       } |  | ||||||
|  |  | ||||||
|       return (storage.value?.usedStorageBytes / storage.value?.totalStorageBytes) * 100 ?? 0; |  | ||||||
|     }); |  | ||||||
|  |  | ||||||
|     const storageText = computed(() => { |  | ||||||
|       if (!storage.value) { |  | ||||||
|         return "Loading..."; |  | ||||||
|       } |  | ||||||
|       return `${storage.value.usedStorageStr} / ${storage.value.totalStorageStr}`; |  | ||||||
|     }); |  | ||||||
|  |  | ||||||
|     return { |     return { | ||||||
|       groupSlug, |       groupSlug, | ||||||
|       storageText, |  | ||||||
|       storageUsedPercentage, |  | ||||||
|       getStatsTitle, |       getStatsTitle, | ||||||
|       getStatsIcon, |       getStatsIcon, | ||||||
|       getStatsTo, |       getStatsTo, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user