Skip to content

Conversation

@opaduchak
Copy link
Contributor

  • Ticket: []
  • Feature flag: n/a

Purpose

Summary of Changes

Screenshot(s)

Side Effects

QA Notes

@opaduchak opaduchak changed the base branch from develop to feature/pbs-25.04 November 14, 2025 11:48
header: 'project.contributors.removeDialog.title',
width: '448px',
data: {
messageKey: 'project.contributors.removeDialog.message',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do you pass it? Will it be different for each remove dialog? I think it better to use directly in RemoveContributorDialog.

width: '448px',
data: {
messageKey: 'project.contributors.removeDialog.message',
messageParams: { name: contributor.fullName },
Copy link
Collaborator

Choose a reason for hiding this comment

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

Pass it as name.

Suggested change
messageParams: { name: contributor.fullName },
name: contributor.fullName,

Copy link
Collaborator

Choose a reason for hiding this comment

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

Add unit tests.

<p-button
class="w-full"
styleClass="w-full"
(click)="cancel()"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use onClick

Suggested change
(click)="cancel()"
(onClick)="cancel()"

<p-button
class="w-full"
styleClass="w-full"
(click)="confirm()"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
(click)="confirm()"
(onClick)="confirm()"

Comment on lines +401 to +405
this.customDialogService
.open(RemoveContributorDialogComponent, {
header: 'project.contributors.removeDialog.title',
width: '448px',
data: {
Copy link
Collaborator

Choose a reason for hiding this comment

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

What will happen if project doesn't have any component?

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.

2 participants