Skip to content
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

Merged
merged 46 commits into from
Jun 19, 2022

Conversation

Olya-web7
Copy link
Contributor

[Workshop Admin/ Deputy] - personal cabinet functionality #1173

@Olya-web7 Olya-web7 requested a review from litvinets May 30, 2022 09:05
this.displayedColumns = ['pib', 'email', 'phone', 'place', 'role', 'status', 'actions'];
this.dataSource = new MatTableDataSource(this.users);
ngOnInit(): void {
this.subrole$.subscribe((subrole) => (this.subrole = subrole));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

takeUntil

Copy link
Contributor

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;

Copy link
Contributor

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;

Copy link
Contributor

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));
Copy link
Contributor

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));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add takeUntil and typo

Comment on lines 146 to 147
this.deviceToogle &&
document.removeEventListener('click', this.onClick.bind(this));
Copy link
Contributor

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));
Copy link
Contributor

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));
Copy link
Contributor

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;
Copy link
Contributor

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;
Copy link
Contributor

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

@Olya-web7 Olya-web7 requested review from litvinets and dmitryy90 June 3, 2022 08:13
@litvinets
Copy link
Contributor

Заступник директора cannot block/delete other deputies, admins. The header of the table was deleted but actions still exist
image

@litvinets
Copy link
Contributor

litvinets commented Jun 4, 2022

Deputy should not be able to create new deputy so this button should be hidden for deputy creation
image
image

@litvinets
Copy link
Contributor

There should be filtration for the workshop. Admin can delete, and edit only workshops he/she is assigned to. ALso can manage application only to his/her workshops
image
image
image
Confirm with BA should admin see all other workshops/application (without actions, only view);
maybe for correct workshop filtering help from backend is needed

this.displayedColumns = ['pib', 'email', 'phone', 'place', 'role', 'status', 'actions'];
this.dataSource = new MatTableDataSource(this.users);
ngOnInit(): void {
this.subrole$.subscribe((subrole) => (this.subrole = subrole));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

takeUntil

@litvinets litvinets merged commit da93cbe into develop Jun 19, 2022
@litvinets litvinets deleted the Workshop-Admin-Deputy-personalcabinet-functionality branch June 20, 2022 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants