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 {