mirror of
https://github.com/nasa/openmct.git
synced 2025-01-14 16:59:54 +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();
|
this.promptForRoleSelection();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
promptForRoleSelection() {
|
async promptForRoleSelection() {
|
||||||
const allRoles = this.openmct.user.getPossibleRoles();
|
const allRoles = await this.openmct.user.getPossibleRoles();
|
||||||
const selectionOptions = allRoles.map((role) => ({
|
const selectionOptions = allRoles.map((role) => ({
|
||||||
key: role,
|
key: role,
|
||||||
name: role
|
name: role
|
||||||
|
Loading…
Reference in New Issue
Block a user