File tree Expand file tree Collapse file tree 1 file changed +1
-42
lines changed
frontend/pages/user/profile Expand file tree Collapse file tree 1 file changed +1
-42
lines changed Original file line number Diff line number Diff line change 55
55
<p >{{ $t('profile.account-summary-description') }}</p >
56
56
</div >
57
57
<v-row tag =" section" >
58
- <v-col cols =" 12" sm =" 12" md =" 6 " >
58
+ <v-col cols =" 12" sm =" 12" md =" 12 " >
59
59
<v-card outlined >
60
60
<v-card-title class =" headline pb-0" > {{ $t('profile.group-statistics') }} </v-card-title >
61
61
<v-card-text class =" py-0" >
75
75
</v-card-text >
76
76
</v-card >
77
77
</v-col >
78
- <v-col cols =" 12" sm =" 12" md =" 6" class =" d-flex align-strart" >
79
- <v-card outlined >
80
- <v-card-title class =" headline pb-0" > {{ $t('profile.storage-capacity') }} </v-card-title >
81
- <v-card-text class =" py-0" >
82
- {{ $t('profile.storage-capacity-description') }}
83
- <strong > {{ $t('general.this-feature-is-currently-inactive') }}</strong >
84
- </v-card-text >
85
- <v-card-text >
86
- <v-progress-linear :value =" storageUsedPercentage" color =" accent" class =" rounded" height =" 30" >
87
- <template #default >
88
- <strong > {{ storageText }} </strong >
89
- </template >
90
- </v-progress-linear >
91
- </v-card-text >
92
- </v-card >
93
- </v-col >
94
78
</v-row >
95
79
</section >
96
80
<v-divider class =" my-7" ></v-divider >
@@ -344,33 +328,8 @@ export default defineComponent({
344
328
return statsTo .value [key ] ?? " unknown" ;
345
329
}
346
330
347
- const storage = useAsync (async () => {
348
- const { data } = await api .groups .storage ();
349
-
350
- if (data ) {
351
- return data ;
352
- }
353
- }, useAsyncKey ());
354
-
355
- const storageUsedPercentage = computed (() => {
356
- if (! storage .value ) {
357
- return 0 ;
358
- }
359
-
360
- return (storage .value ?.usedStorageBytes / storage .value ?.totalStorageBytes ) * 100 ?? 0 ;
361
- });
362
-
363
- const storageText = computed (() => {
364
- if (! storage .value ) {
365
- return " Loading..." ;
366
- }
367
- return ` ${storage .value .usedStorageStr } / ${storage .value .totalStorageStr } ` ;
368
- });
369
-
370
331
return {
371
332
groupSlug ,
372
- storageText ,
373
- storageUsedPercentage ,
374
333
getStatsTitle ,
375
334
getStatsIcon ,
376
335
getStatsTo ,
You can’t perform that action at this time.
0 commit comments