SM-1181: Rename service accounts to machine accounts in routing (#8688)

This commit is contained in:
Colton Hurst 2024-04-18 11:01:14 -04:00 committed by GitHub
parent 2c8855692c
commit a45706cde7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 9 additions and 9 deletions

View File

@ -19,7 +19,7 @@
<bit-nav-item <bit-nav-item
icon="bwi-wrench" icon="bwi-wrench"
[text]="'machineAccounts' | i18n" [text]="'machineAccounts' | i18n"
route="service-accounts" route="machine-accounts"
[relativeTo]="route.parent" [relativeTo]="route.parent"
></bit-nav-item> ></bit-nav-item>
<bit-nav-item <bit-nav-item

View File

@ -6,7 +6,7 @@
<bit-tab-link [route]="['secrets']">{{ "secrets" | i18n }}</bit-tab-link> <bit-tab-link [route]="['secrets']">{{ "secrets" | i18n }}</bit-tab-link>
<ng-container *ngIf="project.write"> <ng-container *ngIf="project.write">
<bit-tab-link [route]="['people']">{{ "people" | i18n }}</bit-tab-link> <bit-tab-link [route]="['people']">{{ "people" | i18n }}</bit-tab-link>
<bit-tab-link [route]="['service-accounts']">{{ "machineAccounts" | i18n }}</bit-tab-link> <bit-tab-link [route]="['machine-accounts']">{{ "machineAccounts" | i18n }}</bit-tab-link>
</ng-container> </ng-container>
</bit-tab-nav-bar> </bit-tab-nav-bar>
<sm-new-menu></sm-new-menu> <sm-new-menu></sm-new-menu>

View File

@ -30,7 +30,7 @@ const routes: Routes = [
component: ProjectPeopleComponent, component: ProjectPeopleComponent,
}, },
{ {
path: "service-accounts", path: "machine-accounts",
component: ProjectServiceAccountsComponent, component: ProjectServiceAccountsComponent,
}, },
], ],

View File

@ -21,8 +21,8 @@ export const serviceAccountAccessGuard: CanActivateFn = async (route: ActivatedR
return createUrlTreeFromSnapshot(route, [ return createUrlTreeFromSnapshot(route, [
"/sm", "/sm",
route.params.organizationId, route.params.organizationId,
"service-accounts", "machine-accounts",
]); ]);
} }
return createUrlTreeFromSnapshot(route, ["/sm", route.params.organizationId, "service-accounts"]); return createUrlTreeFromSnapshot(route, ["/sm", route.params.organizationId, "machine-accounts"]);
}; };

View File

@ -43,7 +43,7 @@ export class ServiceAccountPeopleComponent implements OnInit, OnDestroy {
catchError(() => { catchError(() => {
// FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling. // FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling.
// eslint-disable-next-line @typescript-eslint/no-floating-promises // eslint-disable-next-line @typescript-eslint/no-floating-promises
this.router.navigate(["/sm", this.organizationId, "service-accounts"]); this.router.navigate(["/sm", this.organizationId, "machine-accounts"]);
return EMPTY; return EMPTY;
}), }),
); );
@ -200,7 +200,7 @@ export class ServiceAccountPeopleComponent implements OnInit, OnDestroy {
if (showAccessRemovalWarning) { if (showAccessRemovalWarning) {
// FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling. // FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling.
// eslint-disable-next-line @typescript-eslint/no-floating-promises // eslint-disable-next-line @typescript-eslint/no-floating-promises
this.router.navigate(["sm", this.organizationId, "service-accounts"]); this.router.navigate(["sm", this.organizationId, "machine-accounts"]);
} else if ( } else if (
this.accessPolicySelectorService.isAccessRemoval(currentAccessPolicies, selectedPolicies) this.accessPolicySelectorService.isAccessRemoval(currentAccessPolicies, selectedPolicies)
) { ) {

View File

@ -45,7 +45,7 @@ export class ServiceAccountComponent implements OnInit, OnDestroy {
catchError(() => { catchError(() => {
// FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling. // FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling.
// eslint-disable-next-line @typescript-eslint/no-floating-promises // eslint-disable-next-line @typescript-eslint/no-floating-promises
this.router.navigate(["/sm", this.organizationId, "service-accounts"]).then(() => { this.router.navigate(["/sm", this.organizationId, "machine-accounts"]).then(() => {
this.platformUtilsService.showToast( this.platformUtilsService.showToast(
"error", "error",
null, null,

View File

@ -54,7 +54,7 @@ const routes: Routes = [
}, },
}, },
{ {
path: "service-accounts", path: "machine-accounts",
loadChildren: () => ServiceAccountsModule, loadChildren: () => ServiceAccountsModule,
data: { data: {
titleId: "machineAccounts", titleId: "machineAccounts",