web/satellite: route to billing page on frozen status banner changed

redirect path changed from billing overview to billing payment methods;
fixed router path change beeing not tracked;

Change-Id: Ib5b11d4819ec8fe43acbe624a937f9364921d13a
This commit is contained in:
NickolaiYurchenko 2022-12-22 17:39:05 +02:00
parent d20a2e9a7d
commit 013e74f804

View File

@ -78,7 +78,7 @@
</template>
<script setup lang="ts">
import { computed, onBeforeMount, onBeforeUnmount, onMounted, ref } from 'vue';
import { computed, onBeforeMount, onBeforeUnmount, onMounted, reactive, ref, watch } from 'vue';
import { ErrorUnauthorized } from '@/api/errors/ErrorUnauthorized';
import { RouteConfig } from '@/router';
@ -126,9 +126,12 @@ const {
} = PAYMENTS_ACTIONS;
const store = useStore();
const router = useRouter();
// TODO: will be swapped with useRouter from new version of router. remove after vue-router version upgrade.
const nativeRouter = useRouter();
const notify = useNotify();
const router = reactive(nativeRouter);
const auth: AuthHttpApi = new AuthHttpApi();
const analytics: AnalyticsHttpApi = new AnalyticsHttpApi();
const resetActivityEvents: string[] = ['keypress', 'mousemove', 'mousedown', 'touchmove'];
@ -496,7 +499,7 @@ function closeInactivityModal(): void {
* Redirects to Billing Page.
*/
async function redirectToBillingPage(): Promise<void> {
await router.push(RouteConfig.Account.with(RouteConfig.Billing.with(RouteConfig.BillingOverview)).path);
await router.push(RouteConfig.Account.with(RouteConfig.Billing.with(RouteConfig.BillingPaymentMethods)).path);
}
/**