mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-29 19:19:39 +08:00
feat: CB-1234 app features
This commit is contained in:
@@ -85,8 +85,8 @@ export const AuthDialog: DialogComponent<IAuthPayload, null> = observer(function
|
||||
const controller = useController(AuthDialogController, link, providerId, rejectDialog);
|
||||
const translate = useTranslate();
|
||||
|
||||
if (!providerId) {
|
||||
controller.setAdminMode(administrationScreenService.activeScreen !== null);
|
||||
if (administrationScreenService.activeScreen !== null) {
|
||||
controller.setAdminMode(administrationScreenService.activeScreen !== null, providerId);
|
||||
}
|
||||
|
||||
const additional = userInfo.data !== null
|
||||
|
||||
@@ -92,11 +92,13 @@ export class AuthDialogController implements IInitializableController, IDestruct
|
||||
this.loadProviders();
|
||||
}
|
||||
|
||||
setAdminMode(mode: boolean): void {
|
||||
setAdminMode(mode: boolean, providerId: string | null): void {
|
||||
if (this.admin !== mode) {
|
||||
this.admin = mode;
|
||||
|
||||
this.selectFirstAvailable();
|
||||
if (!providerId) {
|
||||
this.selectFirstAvailable();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user