diff --git a/src/app/modules/bandwidth/views/overview/storage-data.config.ts b/src/app/modules/bandwidth/views/overview/storage-data.config.ts index 39619d0a3..b2f3c7d72 100644 --- a/src/app/modules/bandwidth/views/overview/storage-data.config.ts +++ b/src/app/modules/bandwidth/views/overview/storage-data.config.ts @@ -17,7 +17,7 @@ export class StorageDataConfig extends ReportDataBaseConfig { return { [ReportDataSection.graph]: { fields: { - 'average_storge': { + 'average_storage': { format: value => value, graphTooltip: (value) => `${fileSize(value, 1).value} ${fileSize(value).units}`, colors: [getPrimaryColor('default'), getColorPercent(100,'default')], @@ -51,7 +51,7 @@ export class StorageDataConfig extends ReportDataBaseConfig { format: value => DateFilterUtils.formatMonthString(value, analyticsConfig.locale), nonComparable: true, }, - 'average_storge': { + 'average_storage': { format: value => ReportHelper.numberOrZero(value, true), sortOrder: 1 }, @@ -74,11 +74,11 @@ export class StorageDataConfig extends ReportDataBaseConfig { } }, [ReportDataSection.totals]: { - preSelected: 'average_storge', + preSelected: 'average_storage', fields: { - 'average_storge': { + 'average_storage': { format: value => ReportHelper.numberOrZero(fileSize(value).value, false), - title: this._translate.instant(`app.bandwidth.overview.average_storge`), + title: this._translate.instant(`app.bandwidth.overview.average_storage`), tooltip: this._translate.instant(`app.bandwidth.storedMedia_tt`), units: value => fileSize(value).units, sortOrder: 1 diff --git a/src/assets/i18n/en.json b/src/assets/i18n/en.json index 0124189d8..5de9dd1e1 100644 --- a/src/assets/i18n/en.json +++ b/src/assets/i18n/en.json @@ -247,7 +247,7 @@ "lastMonths": "{{months}} Months usage up to {{selectedPeriod}}", "year_id": "Year", "lastYears": "{{years}} Years usage up to {{selectedPeriod}}", - "average_storge": "Stored Media", + "average_storage": "Stored Media", "bandwidth_consumption": "Outbound Bandwidth", "transcoding_consumption": "Transcoded Media", "total_entries": "Managed Entries",