fix(console): bugs and some imperfections (#1557)

* org refresh, mfa name attribute

* fix org change
This commit is contained in:
Max Peintner
2021-04-08 13:11:12 +02:00
committed by GitHub
parent e1a930d535
commit e7913bde59
15 changed files with 41 additions and 23 deletions
@@ -9,6 +9,7 @@ import { GrantedProject, Project, Role } from 'src/app/proto/generated/zitadel/p
import { User } from 'src/app/proto/generated/zitadel/user_pb';
import { GrpcAuthService } from 'src/app/services/grpc-auth.service';
import { ManagementService } from 'src/app/services/mgmt.service';
import { StorageKey, StorageService } from 'src/app/services/storage.service';
import { ToastService } from 'src/app/services/toast.service';
@Component({
@@ -51,6 +52,7 @@ export class UserGrantCreateComponent implements OnDestroy {
private route: ActivatedRoute,
private authService: GrpcAuthService,
private mgmtService: ManagementService,
private storage: StorageService,
) {
this.subscription = this.route.params.subscribe((params: Params) => {
const { projectid, grantid, userid } = params;
@@ -83,9 +85,10 @@ export class UserGrantCreateComponent implements OnDestroy {
}
});
this.authService.getActiveOrg().then(org => {
this.org = org;
});
const temporg = this.storage.getItem<Org.AsObject>(StorageKey.organization);
if (temporg) {
this.org = temporg;
}
}
public close(): void {