From a43540d058a06e9a45cd57805c22335773f97b83 Mon Sep 17 00:00:00 2001 From: Patrick Winfield Date: Mon, 16 Oct 2023 11:07:41 -0600 Subject: [PATCH 1/2] rename bandwidth to data transfer. hide storage --- src/components/HAppCardUsage.vue | 12 ++++++------ src/locales/en.js | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/HAppCardUsage.vue b/src/components/HAppCardUsage.vue index 6e77b68..07ca698 100644 --- a/src/components/HAppCardUsage.vue +++ b/src/components/HAppCardUsage.vue @@ -30,14 +30,14 @@ const items = computed(() => { unit: t('$.cpu'), isDisabled: true }, - { - value: presentBytes(props.happ.storage), - unit: t('$.storage'), - isDisabled: true - }, + // { + // value: presentBytes(props.happ.storage), + // unit: t('$.storage'), + // isDisabled: true + // }, { value: presentBytes(props.happ.usage?.bandwidth), - unit: t('$.bandwidth'), + unit: t('$.data_transfer'), isDisabled: false } ] diff --git a/src/locales/en.js b/src/locales/en.js index 966dbaa..4920321 100644 --- a/src/locales/en.js +++ b/src/locales/en.js @@ -1,7 +1,7 @@ const translations = { $: { app_version: '{app} version {version}', - bandwidth: 'Bandwidth', + data_transfer: 'Data Transfer', cancel: 'Cancel', confirm: 'Confirm', continue: 'Continue', From b3f3c1d9101b7b879491bccdeda761868c9fe896 Mon Sep 17 00:00:00 2001 From: Patrick Winfield Date: Mon, 16 Oct 2023 15:33:32 -0600 Subject: [PATCH 2/2] rename bandwidth 2 data_transfer --- src/components/HAppCardUsage.vue | 2 +- src/stories/mocks.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/HAppCardUsage.vue b/src/components/HAppCardUsage.vue index 07ca698..674dce4 100644 --- a/src/components/HAppCardUsage.vue +++ b/src/components/HAppCardUsage.vue @@ -36,7 +36,7 @@ const items = computed(() => { // isDisabled: true // }, { - value: presentBytes(props.happ.usage?.bandwidth), + value: presentBytes(props.happ.usage?.data_transfer), unit: t('$.data_transfer'), isDisabled: false } diff --git a/src/stories/mocks.js b/src/stories/mocks.js index 05852ca..33ffe42 100644 --- a/src/stories/mocks.js +++ b/src/stories/mocks.js @@ -256,7 +256,7 @@ export const hAppMock = { isPaused: false, enabled: true, sourceChains: 0, - usage: { bandwidth: 0, cpu: 0 }, + usage: { data_transfer: 0, cpu: 0 }, storage: 0 }