-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Workshop Admin/ Deputy] - personal cabinet functionality #1173 #1233
[Workshop Admin/ Deputy] - personal cabinet functionality #1173 #1233
Conversation
Release Candidate 1.0.0
…ttps://github.com/ita-social-projects/OoS-Frontend into Workshop-Admin-Deputy-personalcabinet-functionality
remove path (#1245)
this.displayedColumns = ['pib', 'email', 'phone', 'place', 'role', 'status', 'actions']; | ||
this.dataSource = new MatTableDataSource(this.users); | ||
ngOnInit(): void { | ||
this.subrole$.subscribe((subrole) => (this.subrole = subrole)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
takeUntil
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add typo
@@ -47,6 +47,8 @@ describe('ProviderAdminsComponent', () => { | |||
fixture = TestBed.createComponent(ProviderAdminsComponent); | |||
component = fixture.componentInstance; | |||
fixture.detectChanges(); | |||
component.subrole = '' as string; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove empty row
@@ -47,6 +47,8 @@ describe('ProviderAdminsComponent', () => { | |||
fixture = TestBed.createComponent(ProviderAdminsComponent); | |||
component = fixture.componentInstance; | |||
fixture.detectChanges(); | |||
component.subrole = '' as string; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove empty row
@@ -85,6 +106,8 @@ export class ProviderAdminsComponent implements OnInit, OnDestroy { | |||
takeUntil(this.destroy$) | |||
) | |||
.subscribe((provider: Provider) => (this.provider = provider)); | |||
|
|||
this.subrole$.subscribe((subrole) => (this.subrole = subrole)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
either add takeUntil or use async in the template
@@ -85,6 +106,8 @@ export class ProviderAdminsComponent implements OnInit, OnDestroy { | |||
takeUntil(this.destroy$) | |||
) | |||
.subscribe((provider: Provider) => (this.provider = provider)); | |||
|
|||
this.subrole$.subscribe((subrole) => (this.subrole = subrole)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add takeUntil and typo
this.deviceToogle && | ||
document.removeEventListener('click', this.onClick.bind(this)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please revert changes linter changes
|
||
ngOnInit(): void { | ||
this.childAge = Util.getChildAge(this.application.child); | ||
this.deviceToogle = this.detectedDevice.checkedDevice() | ||
this.deviceToogle = this.detectedDevice.checkedDevice(); | ||
this.subrole$.subscribe((subrole) => (this.subrole = subrole)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
takeUntil, typo
|
||
ngOnInit(): void { | ||
this.childAge = Util.getChildAge(this.application.child); | ||
this.deviceToogle = this.detectedDevice.checkedDevice() | ||
this.deviceToogle = this.detectedDevice.checkedDevice(); | ||
this.subrole$.subscribe((subrole) => (this.subrole = subrole)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
takeUntil, typo
@@ -25,32 +45,35 @@ export class UsersListComponent implements OnInit, AfterViewInit { | |||
readonly providerAdminTitles = ProviderAdminTitles; | |||
readonly providerAdminStatus = ProviderAdminStatus; | |||
readonly providerAdminIcons = ProviderAdminIcons; | |||
subrole: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add empty row between readonly and public values
@@ -25,32 +45,35 @@ export class UsersListComponent implements OnInit, AfterViewInit { | |||
readonly providerAdminTitles = ProviderAdminTitles; | |||
readonly providerAdminStatus = ProviderAdminStatus; | |||
readonly providerAdminIcons = ProviderAdminIcons; | |||
subrole: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add empty row between readonly and public values
this.displayedColumns = ['pib', 'email', 'phone', 'place', 'role', 'status', 'actions']; | ||
this.dataSource = new MatTableDataSource(this.users); | ||
ngOnInit(): void { | ||
this.subrole$.subscribe((subrole) => (this.subrole = subrole)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
takeUntil
…ttps://github.com/ita-social-projects/OoS-Frontend into Workshop-Admin-Deputy-personalcabinet-functionality
…-Admin-Deputy-personalcabinet-functionality
[Workshop Admin/ Deputy] - personal cabinet functionality #1173