mirror of
https://github.com/nasa/openmct.git
synced 2024-12-26 08:11:05 +00:00
Separated input value from active role value
This commit is contained in:
parent
6444e9139e
commit
528f87e930
@ -38,7 +38,8 @@ export default {
|
||||
userName: undefined,
|
||||
role: undefined,
|
||||
loggedIn: false,
|
||||
roleChannelProvider: undefined
|
||||
roleChannelProvider: undefined,
|
||||
inputRoleSelection: undefined
|
||||
};
|
||||
},
|
||||
|
||||
@ -82,7 +83,7 @@ export default {
|
||||
message: 'Please select your role for operator status.',
|
||||
currentSelection: this.role,
|
||||
onChange: (event) => {
|
||||
this.role = event.target.value;
|
||||
this.inputRoleSelection = event.target.value;
|
||||
},
|
||||
buttons: [
|
||||
{
|
||||
@ -90,7 +91,7 @@ export default {
|
||||
emphasis: true,
|
||||
callback: () => {
|
||||
dialog.dismiss();
|
||||
this.updateRole(this.role);
|
||||
this.updateRole(this.inputRoleSelection);
|
||||
this.openmct.notifications.info(`Successfully set new role to ${this.role}`);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user