Add feature flag for scim navigation (#3146)
This commit is contained in:
parent
01dd22fda8
commit
36b66ee5de
|
@ -16,6 +16,7 @@
|
|||
"proxyEvents": "https://events.bitwarden.com"
|
||||
},
|
||||
"flags": {
|
||||
"showTrial": false
|
||||
"showTrial": false,
|
||||
"scim": false
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
"proxyNotifications": "http://localhost:61840"
|
||||
},
|
||||
"flags": {
|
||||
"showTrial": true
|
||||
"showTrial": true,
|
||||
"scim": true
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
"proxyEvents": "https://events.qa.bitwarden.pw"
|
||||
},
|
||||
"flags": {
|
||||
"showTrial": true
|
||||
"showTrial": true,
|
||||
"scim": true
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
"port": 8081
|
||||
},
|
||||
"flags": {
|
||||
"showTrial": false
|
||||
"showTrial": false,
|
||||
"scim": false
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,6 +4,8 @@ import { ActivatedRoute } from "@angular/router";
|
|||
import { OrganizationService } from "@bitwarden/common/abstractions/organization.service";
|
||||
import { Organization } from "@bitwarden/common/models/domain/organization";
|
||||
|
||||
import { flagEnabled } from "../../../utils/flags";
|
||||
|
||||
@Component({
|
||||
selector: "app-org-manage",
|
||||
templateUrl: "manage.component.html",
|
||||
|
@ -25,7 +27,12 @@ export class ManageComponent implements OnInit {
|
|||
this.accessSso = this.organization.useSso;
|
||||
this.accessEvents = this.organization.useEvents;
|
||||
this.accessGroups = this.organization.useGroups;
|
||||
this.accessScim = this.organization.useScim;
|
||||
|
||||
if (flagEnabled("scim")) {
|
||||
this.accessScim = this.organization.useScim;
|
||||
} else {
|
||||
this.accessScim = false;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
export type Flags = {
|
||||
showTrial?: boolean;
|
||||
scim?: boolean;
|
||||
};
|
||||
|
||||
export type FlagName = keyof Flags;
|
||||
|
|
Loading…
Reference in New Issue