Skip to content

Commit 031d313

Browse files
author
Vitor Durante
committed
Adequate to new NSwag generated code style
1 parent 86a19b6 commit 031d313

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

angular/src/app/roles/create-role/create-role.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ export class CreateRoleComponent extends AppComponentBase implements OnInit {
3434

3535
show(): void {
3636
this.active = true;
37-
this.role = new CreateRoleDto({ isStatic: false });
37+
this.role = new CreateRoleDto();
38+
this.role.init({ isStatic: false });
3839

3940
this.modal.show();
4041
}

angular/src/app/tenants/create-tenant/create-tenant.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ export class CreateTenantComponent extends AppComponentBase {
3030
show(): void {
3131
this.active = true;
3232
this.modal.show();
33-
this.tenant = new CreateTenantDto({isActive:true});
33+
this.tenant = new CreateTenantDto();
34+
this.tenant.init({isActive:true});
3435
}
3536

3637
onShown(): void {

angular/src/app/users/create-user/create-user.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ export class CreateUserComponent extends AppComponentBase implements OnInit {
3838
show(): void {
3939
this.active = true;
4040
this.modal.show();
41-
this.user = new CreateUserDto({ isActive: true });
41+
this.user = new CreateUserDto();
42+
this.user.init({ isActive: true });
4243
}
4344

4445
onShown(): void {

0 commit comments

Comments
 (0)