Drop disk & transfer usage as always shows N/A
Show it again when valuable information could be provided to the user.
This commit is contained in:
parent
0b31049f0b
commit
0695099980
|
@ -67,24 +67,6 @@ class DashboardView(CustomContextMixin, UserTokenRequiredMixin, TemplateView):
|
||||||
|
|
||||||
# TODO(@slamora) update when backend provides resource usage data
|
# TODO(@slamora) update when backend provides resource usage data
|
||||||
resource_usage = {
|
resource_usage = {
|
||||||
'disk': {
|
|
||||||
'verbose_name': _('Disk usage'),
|
|
||||||
'data': {
|
|
||||||
# 'usage': 534,
|
|
||||||
# 'total': 1024,
|
|
||||||
# 'unit': 'MB',
|
|
||||||
# 'percent': 50,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'traffic': {
|
|
||||||
'verbose_name': _('Traffic'),
|
|
||||||
'data': {
|
|
||||||
# 'usage': 300,
|
|
||||||
# 'total': 2048,
|
|
||||||
# 'unit': 'MB/month',
|
|
||||||
# 'percent': 25,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'mailbox': self.get_mailbox_usage(profile_type),
|
'mailbox': self.get_mailbox_usage(profile_type),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue