From 28540743072ef7e1211d71d4f688f2be3312100d Mon Sep 17 00:00:00 2001 From: Khalid Adil Date: Wed, 12 Jul 2023 17:00:11 -0500 Subject: [PATCH] Make promptForRoleSelection async to allow for awaiting getPossibleRoles --- src/plugins/userIndicator/components/UserIndicator.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/userIndicator/components/UserIndicator.vue b/src/plugins/userIndicator/components/UserIndicator.vue index 16df1129df..6ea1027f03 100644 --- a/src/plugins/userIndicator/components/UserIndicator.vue +++ b/src/plugins/userIndicator/components/UserIndicator.vue @@ -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