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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 17 additions and 5 deletions

View File

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

View File

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

View File

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

View File

@ -7,6 +7,7 @@
"port": 8081
},
"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 { 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;
}
});
}
}

View File

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