mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-17 19:05:13 +00:00
# Which Problems Are Solved # How the Problems Are Solved # Additional Changes # Additional Context - Closes #10690
This commit is contained in:
+1
-1
@@ -155,7 +155,7 @@
|
||||
matTooltip="copy to clipboard"
|
||||
cnslCopyToClipboard
|
||||
[valueToCopy]="otpsecret"
|
||||
(copiedValue)="this.copied = $event"
|
||||
(copiedValue)="copied = $event"
|
||||
mat-icon-button
|
||||
>
|
||||
<i *ngIf="copied !== otpsecret" class="las la-clipboard"></i>
|
||||
|
||||
+1
@@ -32,6 +32,7 @@ export type AddAuthFactorDialogData = {
|
||||
selector: 'cnsl-auth-factor-dialog',
|
||||
templateUrl: './auth-factor-dialog.component.html',
|
||||
styleUrls: ['./auth-factor-dialog.component.scss'],
|
||||
standalone: false,
|
||||
})
|
||||
export class AuthFactorDialogComponent {
|
||||
public otpurl: string = '';
|
||||
|
||||
+1
@@ -26,6 +26,7 @@ export interface WebAuthNOptions {
|
||||
selector: 'cnsl-auth-passwordless',
|
||||
templateUrl: './auth-passwordless.component.html',
|
||||
styleUrls: ['./auth-passwordless.component.scss'],
|
||||
standalone: false,
|
||||
})
|
||||
export class AuthPasswordlessComponent implements OnInit, OnDestroy {
|
||||
public displayedColumns: string[] = ['name', 'state', 'actions'];
|
||||
|
||||
+1
@@ -16,6 +16,7 @@ export enum U2FComponentDestination {
|
||||
selector: 'cnsl-dialog-passwordless',
|
||||
templateUrl: './dialog-passwordless.component.html',
|
||||
styleUrls: ['./dialog-passwordless.component.scss'],
|
||||
standalone: false,
|
||||
})
|
||||
export class DialogPasswordlessComponent {
|
||||
private type!: U2FComponentDestination;
|
||||
|
||||
+14
-16
@@ -46,6 +46,7 @@ type UserWithHumanType = Omit<User, 'type'> & { type: { case: 'human'; value: Hu
|
||||
selector: 'cnsl-auth-user-detail',
|
||||
templateUrl: './auth-user-detail.component.html',
|
||||
styleUrls: ['./auth-user-detail.component.scss'],
|
||||
standalone: false,
|
||||
})
|
||||
export class AuthUserDetailComponent implements OnInit {
|
||||
protected readonly genders: Gender[] = [Gender.MALE, Gender.FEMALE, Gender.DIVERSE];
|
||||
@@ -112,23 +113,20 @@ export class AuthUserDetailComponent implements OnInit {
|
||||
filter(Boolean),
|
||||
);
|
||||
|
||||
effect(
|
||||
() => {
|
||||
const user = this.user.data();
|
||||
if (!user || user.type.case !== 'human') {
|
||||
return;
|
||||
}
|
||||
effect(() => {
|
||||
const user = this.user.data();
|
||||
if (!user || user.type.case !== 'human') {
|
||||
return;
|
||||
}
|
||||
|
||||
this.breadcrumbService.setBreadcrumb([
|
||||
new Breadcrumb({
|
||||
type: BreadcrumbType.AUTHUSER,
|
||||
name: user.type.value.profile?.displayName,
|
||||
routerLink: ['/users', 'me'],
|
||||
}),
|
||||
]);
|
||||
},
|
||||
{ allowSignalWrites: true },
|
||||
);
|
||||
this.breadcrumbService.setBreadcrumb([
|
||||
new Breadcrumb({
|
||||
type: BreadcrumbType.AUTHUSER,
|
||||
name: user.type.value.profile?.displayName,
|
||||
routerLink: ['/users', 'me'],
|
||||
}),
|
||||
]);
|
||||
});
|
||||
|
||||
effect(() => {
|
||||
const error = this.user.error();
|
||||
|
||||
+1
@@ -117,6 +117,7 @@ describe('AuthUserMfaComponent', () => {
|
||||
|
||||
expect(serviceStub.listMyMultiFactors).toHaveBeenCalled();
|
||||
// Our stub returns 3 items
|
||||
// @ts-ignore
|
||||
expect(component.dataSource.data.length).toBe(3);
|
||||
|
||||
// Use the public getter methods to access protected properties
|
||||
|
||||
+1
@@ -24,6 +24,7 @@ export interface WebAuthNOptions {
|
||||
selector: 'cnsl-auth-user-mfa',
|
||||
templateUrl: './auth-user-mfa.component.html',
|
||||
styleUrls: ['./auth-user-mfa.component.scss'],
|
||||
standalone: false,
|
||||
})
|
||||
export class AuthUserMfaComponent implements OnInit, OnDestroy {
|
||||
public displayedColumns: string[] = ['name', 'type', 'state', 'actions'];
|
||||
|
||||
+1
@@ -5,6 +5,7 @@ import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||
selector: 'cnsl-code-dialog',
|
||||
templateUrl: './code-dialog.component.html',
|
||||
styleUrls: ['./code-dialog.component.scss'],
|
||||
standalone: false,
|
||||
})
|
||||
export class CodeDialogComponent {
|
||||
public code: string = '';
|
||||
|
||||
+1
@@ -16,6 +16,7 @@ export enum U2FComponentDestination {
|
||||
selector: 'cnsl-dialog-u2f',
|
||||
templateUrl: './dialog-u2f.component.html',
|
||||
styleUrls: ['./dialog-u2f.component.scss'],
|
||||
standalone: false,
|
||||
})
|
||||
export class DialogU2FComponent {
|
||||
private type!: U2FComponentDestination;
|
||||
|
||||
+1
@@ -33,6 +33,7 @@ export type EditDialogResult = {
|
||||
selector: 'cnsl-edit-dialog',
|
||||
templateUrl: './edit-dialog.component.html',
|
||||
styleUrls: ['./edit-dialog.component.scss'],
|
||||
standalone: false,
|
||||
})
|
||||
export class EditDialogComponent implements OnInit {
|
||||
public controlKey = 'editingField';
|
||||
|
||||
+1
@@ -11,6 +11,7 @@ export type ResendEmailDialogResult = { send: true; email: string } | { send: fa
|
||||
selector: 'cnsl-resend-email-dialog',
|
||||
templateUrl: './resend-email-dialog.component.html',
|
||||
styleUrls: ['./resend-email-dialog.component.scss'],
|
||||
standalone: false,
|
||||
})
|
||||
export class ResendEmailDialogComponent {
|
||||
public email: string = '';
|
||||
|
||||
@@ -12,6 +12,7 @@ import { Human } from '@zitadel/proto/zitadel/user_pb';
|
||||
selector: 'cnsl-contact',
|
||||
templateUrl: './contact.component.html',
|
||||
styleUrls: ['./contact.component.scss'],
|
||||
standalone: false,
|
||||
})
|
||||
export class ContactComponent {
|
||||
@Input() disablePhoneCode: boolean = false;
|
||||
|
||||
+1
@@ -10,6 +10,7 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
selector: 'cnsl-detail-form-machine',
|
||||
templateUrl: './detail-form-machine.component.html',
|
||||
styleUrls: ['./detail-form-machine.component.scss'],
|
||||
standalone: false,
|
||||
})
|
||||
export class DetailFormMachineComponent {
|
||||
@Input({ required: true }) public set username(username: string) {
|
||||
|
||||
@@ -31,6 +31,7 @@ function toHumanProfile(profile: HumanProfile | Profile): HumanProfile {
|
||||
selector: 'cnsl-detail-form',
|
||||
templateUrl: './detail-form.component.html',
|
||||
styleUrls: ['./detail-form.component.scss'],
|
||||
standalone: false,
|
||||
})
|
||||
export class DetailFormComponent implements OnInit {
|
||||
@Input() public showEditImage: boolean = false;
|
||||
|
||||
+1
@@ -8,6 +8,7 @@ import { ToastService } from 'src/app/services/toast.service';
|
||||
selector: 'cnsl-profile-picture',
|
||||
templateUrl: './profile-picture.component.html',
|
||||
styleUrls: ['./profile-picture.component.scss'],
|
||||
standalone: false,
|
||||
})
|
||||
export class ProfilePictureComponent {
|
||||
constructor(
|
||||
|
||||
@@ -16,6 +16,7 @@ import { ToastService } from 'src/app/services/toast.service';
|
||||
selector: 'cnsl-external-idps',
|
||||
templateUrl: './external-idps.component.html',
|
||||
styleUrls: ['./external-idps.component.scss'],
|
||||
standalone: false,
|
||||
})
|
||||
export class ExternalIdpsComponent implements OnInit, OnDestroy {
|
||||
@Input({ required: true }) service!: GrpcAuthService | ManagementService;
|
||||
|
||||
@@ -28,6 +28,7 @@ import { PasswordComplexityValidatorFactoryService } from 'src/app/services/pass
|
||||
selector: 'cnsl-password',
|
||||
templateUrl: './password.component.html',
|
||||
styleUrls: ['./password.component.scss'],
|
||||
standalone: false,
|
||||
})
|
||||
export class PasswordComponent implements OnInit {
|
||||
private readonly breadcrumb$: Observable<Breadcrumb[]>;
|
||||
|
||||
@@ -5,6 +5,7 @@ import { formatPhone } from 'src/app/utils/formatPhone';
|
||||
selector: 'cnsl-phone-detail',
|
||||
templateUrl: './phone-detail.component.html',
|
||||
styleUrls: ['./phone-detail.component.scss'],
|
||||
standalone: false,
|
||||
})
|
||||
export class PhoneDetailComponent implements OnChanges {
|
||||
@Input() phone: string | undefined;
|
||||
|
||||
@@ -36,7 +36,6 @@ import { WarnDialogModule } from 'src/app/modules/warn-dialog/warn-dialog.module
|
||||
import { HasRolePipeModule } from 'src/app/pipes/has-role-pipe/has-role-pipe.module';
|
||||
import { LocalizedDatePipeModule } from 'src/app/pipes/localized-date-pipe/localized-date-pipe.module';
|
||||
import { TimestampToDatePipeModule } from 'src/app/pipes/timestamp-to-date-pipe/timestamp-to-date-pipe.module';
|
||||
import { QRCodeModule } from 'angularx-qrcode';
|
||||
import { InfoDialogModule } from 'src/app/modules/info-dialog/info-dialog.module';
|
||||
import { MetadataModule } from 'src/app/modules/metadata/metadata.module';
|
||||
import { CountryCallingCodesService } from 'src/app/services/country-calling-codes.service';
|
||||
@@ -61,6 +60,7 @@ import { MachineSecretDialogComponent } from './user-detail/machine-secret-dialo
|
||||
import { PasswordlessComponent } from './user-detail/passwordless/passwordless.component';
|
||||
import { UserDetailComponent } from './user-detail/user-detail.component';
|
||||
import { UserMfaComponent } from './user-detail/user-mfa/user-mfa.component';
|
||||
import { QRCodeComponent } from 'angularx-qrcode';
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
@@ -95,7 +95,6 @@ import { UserMfaComponent } from './user-detail/user-mfa/user-mfa.component';
|
||||
DetailFormMachineModule,
|
||||
WarnDialogModule,
|
||||
MatDialogModule,
|
||||
QRCodeModule,
|
||||
ShowTokenDialogModule,
|
||||
MetaLayoutModule,
|
||||
MatCheckboxModule,
|
||||
@@ -129,6 +128,8 @@ import { UserMfaComponent } from './user-detail/user-mfa/user-mfa.component';
|
||||
InfoSectionModule,
|
||||
MatSelectModule,
|
||||
TypeSafeCellDefModule,
|
||||
QRCodeComponent,
|
||||
MatProgressSpinnerModule,
|
||||
],
|
||||
})
|
||||
export class UserDetailModule {}
|
||||
|
||||
+2
-2
@@ -12,7 +12,7 @@
|
||||
matTooltip="copy to clipboard"
|
||||
cnslCopyToClipboard
|
||||
[valueToCopy]="data.clientId"
|
||||
(copiedValue)="this.copied = $event"
|
||||
(copiedValue)="copied = $event"
|
||||
mat-icon-button
|
||||
data-e2e="client-id-copy"
|
||||
>
|
||||
@@ -29,7 +29,7 @@
|
||||
matTooltip="copy to clipboard"
|
||||
cnslCopyToClipboard
|
||||
[valueToCopy]="data.clientSecret"
|
||||
(copiedValue)="this.copied = $event"
|
||||
(copiedValue)="copied = $event"
|
||||
mat-icon-button
|
||||
>
|
||||
<i *ngIf="copied !== data.clientSecret" class="las la-clipboard"></i>
|
||||
|
||||
+1
@@ -5,6 +5,7 @@ import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||
selector: 'cnsl-machine-secret-dialog',
|
||||
templateUrl: './machine-secret-dialog.component.html',
|
||||
styleUrls: ['./machine-secret-dialog.component.scss'],
|
||||
standalone: false,
|
||||
})
|
||||
export class MachineSecretDialogComponent {
|
||||
public copied: string = '';
|
||||
|
||||
+1
@@ -23,6 +23,7 @@ export interface WebAuthNOptions {
|
||||
selector: 'cnsl-passwordless',
|
||||
templateUrl: './passwordless.component.html',
|
||||
styleUrls: ['./passwordless.component.scss'],
|
||||
standalone: false,
|
||||
})
|
||||
export class PasswordlessComponent implements OnInit, OnDestroy {
|
||||
@Input({ required: true }) public user!: User;
|
||||
|
||||
@@ -81,6 +81,7 @@ type UserWithHumanType = Omit<UserV2, 'type'> & { type: { case: 'human'; value:
|
||||
selector: 'cnsl-user-detail',
|
||||
templateUrl: './user-detail.component.html',
|
||||
styleUrls: ['./user-detail.component.scss'],
|
||||
standalone: false,
|
||||
})
|
||||
export class UserDetailComponent implements OnInit {
|
||||
public user$: Observable<UserQuery>;
|
||||
|
||||
@@ -23,6 +23,7 @@ type MFAQuery =
|
||||
selector: 'cnsl-user-mfa',
|
||||
templateUrl: './user-mfa.component.html',
|
||||
styleUrls: ['./user-mfa.component.scss'],
|
||||
standalone: false,
|
||||
})
|
||||
export class UserMfaComponent {
|
||||
@Input({ required: true }) public set user(user: User) {
|
||||
|
||||
Reference in New Issue
Block a user