Skip to content

Notification says invite will be sent when adding a team owner to crate #9797

@wezm

Description

@wezm

Current Behavior

When a GitHub team is added as a crate owner, a notification is shown that reads:

An invite has been sent to github:org:team

This appears to originate here:

this.notifications.success(`An invite has been sent to ${username}`);

However as noted here:

/// Note: Teams are always immediately added, so they cannot have a pending
/// invite to cause this error.

teams are always immediately added.

Expected Behavior

I'd expect the notification message to be different when adding a team, indicating that the team has been added. The message about an invite being sent confused me into thinking I needed to find an email.

Steps To Reproduce

  1. Go to the settings of a crate
  2. Enter a team in the Add Owner field and press Save
  3. Observe notification

Environment

N/A

Anything else?

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions