#1571 Totally not obvious that "new token" requires selections
Closed: Fixed Opened by puiterwijk.

Unless you go and look at the code or just try random things, there's no way you ever find out that when you add a new project token you are able to (and need to) select permissions for it.

There is no indication at all that the entries shown are selectable (no blank checkbox), and the text does not ask you to select permissions.
Also, if you submit without any permissions, you just get dropped back to the selection screen without any additional messages.


There is no indication at all that the entries shown are selectable (no blank checkbox), and the text does not ask you to select permissions.

I agree, and would like to take a shot at fixing this.

Checklist:
- Display a message, asking the user to select permissions.
- Show error message on submission of empty list.
- Also, rename the button 'Add' to 'Create', since the heading says 'Create a new token'.
- After an empty submission, clicking cancel just reloads the same page. It should redirect to the 'Settings' page instead.

Related PR: https://pagure.io/pagure/pull-request/1725
Please take a look. Cc: @pingou

Fixed by @cep in https://pagure.io/pagure/pull-request/1725

@pingou changed the status to Closed

Metadata