From 7a4d661e48cfd9c5eb96929d35b9b2d72692333d Mon Sep 17 00:00:00 2001 From: Michael Rogers Date: Thu, 15 Jun 2023 11:50:35 -0500 Subject: [PATCH] Removed unused role param from status api call --- src/api/user/StatusAPI.js | 2 +- src/plugins/operatorStatus/operatorStatus/OperatorStatus.vue | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/api/user/StatusAPI.js b/src/api/user/StatusAPI.js index 18cb0088b8..dc62bb35d0 100644 --- a/src/api/user/StatusAPI.js +++ b/src/api/user/StatusAPI.js @@ -151,7 +151,7 @@ export default class StatusAPI extends EventEmitter { * @param {Status} status The status to set for the provided role * @returns {Promise} true if operation was successful, otherwise false. */ - setStatusForRole(_role, status) { + setStatusForRole(status) { const provider = this.#userAPI.getProvider(); if (provider.setStatusForRole) { diff --git a/src/plugins/operatorStatus/operatorStatus/OperatorStatus.vue b/src/plugins/operatorStatus/operatorStatus/OperatorStatus.vue index 23635dcbd7..3479a9312f 100644 --- a/src/plugins/operatorStatus/operatorStatus/OperatorStatus.vue +++ b/src/plugins/operatorStatus/operatorStatus/OperatorStatus.vue @@ -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 {