Skip to content

[Bug] Logic of displaying detach from device in API token setting is weird #1026

@christaikobo

Description

@christaikobo

Describe the bug
Right now the menu item of detach from device in API tokens submenu is only shown when a user has 2 or more devices.

To Reproduce
Steps to reproduce the behavior:

  1. Only has 1 device
  2. Go to API tokens submenu
  3. No detach from device option

I am unsure why this is the case now. I think either we display the option all the time, or we only display the option when a certain device has 2 or more tokens attached to it. It should not be linked to how many devices a user has.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions