web/satellite: low balance banner removed for no paywall users
WHAT: yellow low balance banner removed from billing page for no paywall users WHY: better user experience for no paywall users Change-Id: I1c254d7696e166073c66a6fbb82c134903cbc920
This commit is contained in:
parent
0518b16370
commit
3383acc3c8
@ -196,7 +196,7 @@ export class AuthHttpApi {
|
||||
* @returns id of created user
|
||||
* @throws Error
|
||||
*/
|
||||
public async register(user: {fullName: string; shortName: string; email: string; partner: string, partnerId: string; password: string}, secret: string, referrerUserId: string): Promise<string> {
|
||||
public async register(user: {fullName: string; shortName: string; email: string; partner: string; partnerId: string; password: string}, secret: string, referrerUserId: string): Promise<string> {
|
||||
const path = `${this.ROOT_PATH}/register`;
|
||||
const body = {
|
||||
secret: secret,
|
||||
|
@ -161,7 +161,7 @@ export default class BillingArea extends Vue {
|
||||
* Indicates if balance is not below zero but lower then CRITICAL_AMOUNT.
|
||||
*/
|
||||
public get isBalanceLow(): boolean {
|
||||
return this.balance.sum > 0 && this.balance.sum < this.CRITICAL_AMOUNT;
|
||||
return this.balance.coins > 0 && this.balance.sum < this.CRITICAL_AMOUNT;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1,12 +1,13 @@
|
||||
// Copyright (C) 2020 Storj Labs, Inc.
|
||||
// See LICENSE for copying information.
|
||||
|
||||
import Vuex from 'vuex';
|
||||
import sinon from 'sinon';
|
||||
import Vuex from 'vuex';
|
||||
|
||||
import CreateApiKeyStep from '@/components/onboardingTour/steps/CreateApiKeyStep.vue';
|
||||
|
||||
import { makeApiKeysModule } from '@/store/modules/apiKeys';
|
||||
import { appStateModule } from '@/store/modules/appState';
|
||||
import { makeProjectsModule } from '@/store/modules/projects';
|
||||
import { ApiKeysPage } from '@/types/apiKeys';
|
||||
import { Project } from '@/types/projects';
|
||||
@ -16,7 +17,6 @@ import { createLocalVue, mount } from '@vue/test-utils';
|
||||
|
||||
import { ApiKeysMock } from '../../mock/api/apiKeys';
|
||||
import { ProjectsApiMock } from '../../mock/api/projects';
|
||||
import {appStateModule} from "@/store/modules/appState";
|
||||
|
||||
const localVue = createLocalVue();
|
||||
const notificationPlugin = new NotificatorPlugin();
|
||||
|
Loading…
Reference in New Issue
Block a user