mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-24 12:06:15 +01:00
SM-1181: Rename service accounts to machine accounts in routing (#8688)
This commit is contained in:
parent
2c8855692c
commit
a45706cde7
@ -19,7 +19,7 @@
|
||||
<bit-nav-item
|
||||
icon="bwi-wrench"
|
||||
[text]="'machineAccounts' | i18n"
|
||||
route="service-accounts"
|
||||
route="machine-accounts"
|
||||
[relativeTo]="route.parent"
|
||||
></bit-nav-item>
|
||||
<bit-nav-item
|
||||
|
@ -6,7 +6,7 @@
|
||||
<bit-tab-link [route]="['secrets']">{{ "secrets" | i18n }}</bit-tab-link>
|
||||
<ng-container *ngIf="project.write">
|
||||
<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>
|
||||
</bit-tab-nav-bar>
|
||||
<sm-new-menu></sm-new-menu>
|
||||
|
@ -30,7 +30,7 @@ const routes: Routes = [
|
||||
component: ProjectPeopleComponent,
|
||||
},
|
||||
{
|
||||
path: "service-accounts",
|
||||
path: "machine-accounts",
|
||||
component: ProjectServiceAccountsComponent,
|
||||
},
|
||||
],
|
||||
|
@ -21,8 +21,8 @@ export const serviceAccountAccessGuard: CanActivateFn = async (route: ActivatedR
|
||||
return createUrlTreeFromSnapshot(route, [
|
||||
"/sm",
|
||||
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"]);
|
||||
};
|
||||
|
@ -43,7 +43,7 @@ export class ServiceAccountPeopleComponent implements OnInit, OnDestroy {
|
||||
catchError(() => {
|
||||
// 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
|
||||
this.router.navigate(["/sm", this.organizationId, "service-accounts"]);
|
||||
this.router.navigate(["/sm", this.organizationId, "machine-accounts"]);
|
||||
return EMPTY;
|
||||
}),
|
||||
);
|
||||
@ -200,7 +200,7 @@ export class ServiceAccountPeopleComponent implements OnInit, OnDestroy {
|
||||
if (showAccessRemovalWarning) {
|
||||
// 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
|
||||
this.router.navigate(["sm", this.organizationId, "service-accounts"]);
|
||||
this.router.navigate(["sm", this.organizationId, "machine-accounts"]);
|
||||
} else if (
|
||||
this.accessPolicySelectorService.isAccessRemoval(currentAccessPolicies, selectedPolicies)
|
||||
) {
|
||||
|
@ -45,7 +45,7 @@ export class ServiceAccountComponent implements OnInit, OnDestroy {
|
||||
catchError(() => {
|
||||
// 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
|
||||
this.router.navigate(["/sm", this.organizationId, "service-accounts"]).then(() => {
|
||||
this.router.navigate(["/sm", this.organizationId, "machine-accounts"]).then(() => {
|
||||
this.platformUtilsService.showToast(
|
||||
"error",
|
||||
null,
|
||||
|
@ -54,7 +54,7 @@ const routes: Routes = [
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "service-accounts",
|
||||
path: "machine-accounts",
|
||||
loadChildren: () => ServiceAccountsModule,
|
||||
data: {
|
||||
titleId: "machineAccounts",
|
||||
|
Loading…
Reference in New Issue
Block a user