mirror of
https://github.com/nasa/openmct.git
synced 2024-12-26 08:11:05 +00:00
Removed unused role param from status api call
This commit is contained in:
parent
7261662975
commit
7a4d661e48
@ -151,7 +151,7 @@ export default class StatusAPI extends EventEmitter {
|
||||
* @param {Status} status The status to set for the provided role
|
||||
* @returns {Promise<Boolean>} true if operation was successful, otherwise false.
|
||||
*/
|
||||
setStatusForRole(_role, status) {
|
||||
setStatusForRole(status) {
|
||||
const provider = this.#userAPI.getProvider();
|
||||
|
||||
if (provider.setStatusForRole) {
|
||||
|
@ -74,7 +74,6 @@ export default {
|
||||
return {
|
||||
allRoles: [],
|
||||
role: '--',
|
||||
selectedRole: '',
|
||||
pollQuestionUpdated: '--',
|
||||
currentPollQuestion: DEFAULT_POLL_QUESTION,
|
||||
selectedStatus: undefined,
|
||||
@ -164,7 +163,7 @@ export default {
|
||||
if (this.selectedStatus !== undefined) {
|
||||
const statusObject = this.findStatusByKey(this.selectedStatus);
|
||||
|
||||
const result = await this.openmct.user.status.setStatusForRole(this.selectedRole, statusObject);
|
||||
const result = await this.openmct.user.status.setStatusForRole(statusObject);
|
||||
if (result === true) {
|
||||
this.openmct.notifications.info("Successfully set operator status");
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user