1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 13:53:34 +00:00

Add feature flag for scim navigation (#3146)

This commit is contained in:
Thomas Rittson
2022-07-21 13:27:06 +10:00
committed by GitHub
parent 01dd22fda8
commit 36b66ee5de
6 changed files with 17 additions and 5 deletions

View File

@@ -16,6 +16,7 @@
"proxyEvents": "https://events.bitwarden.com" "proxyEvents": "https://events.bitwarden.com"
}, },
"flags": { "flags": {
"showTrial": false "showTrial": false,
"scim": false
} }
} }

View File

@@ -10,6 +10,7 @@
"proxyNotifications": "http://localhost:61840" "proxyNotifications": "http://localhost:61840"
}, },
"flags": { "flags": {
"showTrial": true "showTrial": true,
"scim": true
} }
} }

View File

@@ -10,6 +10,7 @@
"proxyEvents": "https://events.qa.bitwarden.pw" "proxyEvents": "https://events.qa.bitwarden.pw"
}, },
"flags": { "flags": {
"showTrial": true "showTrial": true,
"scim": true
} }
} }

View File

@@ -7,6 +7,7 @@
"port": 8081 "port": 8081
}, },
"flags": { "flags": {
"showTrial": false "showTrial": false,
"scim": false
} }
} }

View File

@@ -4,6 +4,8 @@ import { ActivatedRoute } from "@angular/router";
import { OrganizationService } from "@bitwarden/common/abstractions/organization.service"; import { OrganizationService } from "@bitwarden/common/abstractions/organization.service";
import { Organization } from "@bitwarden/common/models/domain/organization"; import { Organization } from "@bitwarden/common/models/domain/organization";
import { flagEnabled } from "../../../utils/flags";
@Component({ @Component({
selector: "app-org-manage", selector: "app-org-manage",
templateUrl: "manage.component.html", templateUrl: "manage.component.html",
@@ -25,7 +27,12 @@ export class ManageComponent implements OnInit {
this.accessSso = this.organization.useSso; this.accessSso = this.organization.useSso;
this.accessEvents = this.organization.useEvents; this.accessEvents = this.organization.useEvents;
this.accessGroups = this.organization.useGroups; this.accessGroups = this.organization.useGroups;
if (flagEnabled("scim")) {
this.accessScim = this.organization.useScim; this.accessScim = this.organization.useScim;
} else {
this.accessScim = false;
}
}); });
} }
} }

View File

@@ -1,5 +1,6 @@
export type Flags = { export type Flags = {
showTrial?: boolean; showTrial?: boolean;
scim?: boolean;
}; };
export type FlagName = keyof Flags; export type FlagName = keyof Flags;