Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions ui/app/components/token-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,14 @@ export default class TokenEditorComponent extends Component {
this.activeToken.roles = [];
}

if (this.tokenRegion === 'global') {
this.activeToken.global = true;
} else {
this.activeToken.global = false;
// Only set global property for new tokens
// Existing tokens cannot toggle global mode
if (this.activeToken.isNew) {
if (this.tokenRegion === 'global') {
this.activeToken.global = true;
} else {
this.activeToken.global = false;
}
}

// Sets to "never" for auto-selecting the radio button;
Expand Down
Loading