web/satellite: added no payout data state reset
Change-Id: I950e88d957366e9bd058ea60fe22478d69f5dae6
This commit is contained in:
parent
e52809d53e
commit
dd1fabe2b0
@ -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<void> {
|
||||
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);
|
||||
|
@ -112,6 +112,7 @@ export default class SatelliteSelectionDropdown extends Vue {
|
||||
*/
|
||||
private async fetchPayoutInfo(id: string = ''): Promise<void> {
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user