From dd1fabe2b01ffe21e9b950cfb8a6ab98b3c24187 Mon Sep 17 00:00:00 2001 From: NickolaiYurchenko Date: Mon, 1 Jun 2020 19:16:10 +0300 Subject: [PATCH] web/satellite: added no payout data state reset Change-Id: I950e88d957366e9bd058ea60fe22478d69f5dae6 --- web/storagenode/src/app/components/SNOHeader.vue | 2 ++ .../src/app/components/SatelliteSelectionDropdown.vue | 1 + 2 files changed, 3 insertions(+) diff --git a/web/storagenode/src/app/components/SNOHeader.vue b/web/storagenode/src/app/components/SNOHeader.vue index 96901d360..bde262fd0 100644 --- a/web/storagenode/src/app/components/SNOHeader.vue +++ b/web/storagenode/src/app/components/SNOHeader.vue @@ -61,6 +61,7 @@ import SettingsIcon from '@/../static/images/SettingsDots.svg'; import StorjIcon from '@/../static/images/storjIcon.svg'; import { RouteConfig } from '@/app/router'; +import { APPSTATE_ACTIONS } from '@/app/store/modules/appState'; import { NODE_ACTIONS } from '@/app/store/modules/node'; import { NOTIFICATIONS_ACTIONS } from '@/app/store/modules/notifications'; import { PAYOUT_ACTIONS } from '@/app/store/modules/payout'; @@ -151,6 +152,7 @@ export default class SNOHeader extends Vue { public async onRefresh(): Promise { const selectedSatellite = this.$store.state.node.selectedSatellite.id; + await this.$store.dispatch(APPSTATE_ACTIONS.SET_NO_PAYOUT_DATA, false); try { await this.$store.dispatch(GET_NODE_INFO); diff --git a/web/storagenode/src/app/components/SatelliteSelectionDropdown.vue b/web/storagenode/src/app/components/SatelliteSelectionDropdown.vue index 1fc1c7623..490f86945 100644 --- a/web/storagenode/src/app/components/SatelliteSelectionDropdown.vue +++ b/web/storagenode/src/app/components/SatelliteSelectionDropdown.vue @@ -112,6 +112,7 @@ export default class SatelliteSelectionDropdown extends Vue { */ private async fetchPayoutInfo(id: string = ''): Promise { await this.$store.dispatch(APPSTATE_ACTIONS.TOGGLE_PAYOUT_CALENDAR, false); + await this.$store.dispatch(APPSTATE_ACTIONS.SET_NO_PAYOUT_DATA, false); if (!this.isCurrentPeriod) { try {