refactor(ui): remove unused url parameter from sign-up
The URL parameter aren't used anymore in the api sign-up.
Therefore they were removed and the error message in navigation check was adjusted
Fixes:
MODIFY
src/app/app-routing.module.ts
src/app/app-routing.module.ts
@@ -34,7 +34,7 @@ const routes: Routes = [
component: MarketplaceApiDetailsComponent
},
{
- path: 'api-signup/:orgId/:apiId',
+ path: 'api-signup',
component: MarketplaceSignupStepperComponent,
canActivate: [AuthGuard]
},

MODIFY
src/app/components/marketplace-signup-stepper/marketplace-signup-stepper.component.ts
src/app/components/marketplace-signup-stepper/marketplace-signup-stepper.component.ts
*/
import { Component, OnInit } from '@angular/core';
-import { ActivatedRoute, Router } from '@angular/router';
+import { Router } from '@angular/router';
import { HeroService } from '../../services/hero/hero.service';
import { TranslateService } from '@ngx-translate/core';
import {
@@ -52,7 +52,6 @@ export class MarketplaceSignupStepperComponent implements OnInit {
constructor(
private heroService: HeroService,
- private route: ActivatedRoute,
private translator: TranslateService,
private snackbar: SnackbarService,
private configService: ConfigService,

MODIFY
src/app/components/plan-card-list/plan-card-list.component.ts
src/app/components/plan-card-list/plan-card-list.component.ts
@@ -59,7 +59,7 @@ export class PlanCardListComponent implements OnInit {
plan.planPolicies,
this.apiVersion.docsAvailable
);
- void this.router.navigate(['/api-signup', this.orgId, this.apiId]);
+ void this.router.navigate(['/api-signup']);
}
private fetchPlansAndPolicies(): void {

MODIFY
src/assets/i18n/en.json
src/assets/i18n/en.json
"FORTH_STEP_TITLE": "Confirmation",
"CLIENT_ERROR": "You have to select one client first",
"TERMS_ERROR": "Please accept the service terms",
- "REDIRECT": "You will be redirected because of an invalid URL",
+ "REDIRECT": "You will be redirected because of missing data",
"SUCCESS": "A contract has been successfully created",
"API_KEY_PREVIEW": "You will be provided an API key after sign-up",
"API_ENDPOINT_PREVIEW": "You will be provided an endpoint after sign-up",

refactor(ui): remove unused url parameter from sign-up

The URL parameter aren't used anymore in the api sign-up.
Therefore they were removed and the error message in navigation check was adjusted

Fixes: PAS-3048