mirror of
https://github.com/nasa/openmct.git
synced 2025-01-14 00:40:06 +00:00
Make promptForRoleSelection async to allow for awaiting getPossibleRoles
This commit is contained in:
parent
bd1433db62
commit
2854074307
@ -67,8 +67,8 @@ export default {
|
||||
this.promptForRoleSelection();
|
||||
}
|
||||
},
|
||||
promptForRoleSelection() {
|
||||
const allRoles = this.openmct.user.getPossibleRoles();
|
||||
async promptForRoleSelection() {
|
||||
const allRoles = await this.openmct.user.getPossibleRoles();
|
||||
const selectionOptions = allRoles.map((role) => ({
|
||||
key: role,
|
||||
name: role
|
||||
|
Loading…
Reference in New Issue
Block a user