Skip to content

Commit

Permalink
Suppress role selection if no roles available
Browse files Browse the repository at this point in the history
  • Loading branch information
akhenry committed Jul 14, 2023
1 parent e386036 commit 90d3ab9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/plugins/userIndicator/components/UserIndicator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ export default {
name: role
}));
// automatically select only role option
if (selectionOptions.length === 0){
return;

Check warning on line 85 in src/plugins/userIndicator/components/UserIndicator.vue

View check run for this annotation

Codecov / codecov/patch

src/plugins/userIndicator/components/UserIndicator.vue#L85

Added line #L85 was not covered by tests
}
if (selectionOptions.length === 1) {
this.updateRole(selectionOptions[0].key);
return;
Expand Down

0 comments on commit 90d3ab9

Please sign in to comment.