Removed unused role param from status api call

This commit is contained in:
Michael Rogers 2023-06-15 11:50:35 -05:00
parent 7261662975
commit 7a4d661e48
2 changed files with 2 additions and 3 deletions

View File

@ -151,7 +151,7 @@ export default class StatusAPI extends EventEmitter {
* @param {Status} status The status to set for the provided role * @param {Status} status The status to set for the provided role
* @returns {Promise<Boolean>} true if operation was successful, otherwise false. * @returns {Promise<Boolean>} true if operation was successful, otherwise false.
*/ */
setStatusForRole(_role, status) { setStatusForRole(status) {
const provider = this.#userAPI.getProvider(); const provider = this.#userAPI.getProvider();
if (provider.setStatusForRole) { if (provider.setStatusForRole) {

View File

@ -74,7 +74,6 @@ export default {
return { return {
allRoles: [], allRoles: [],
role: '--', role: '--',
selectedRole: '',
pollQuestionUpdated: '--', pollQuestionUpdated: '--',
currentPollQuestion: DEFAULT_POLL_QUESTION, currentPollQuestion: DEFAULT_POLL_QUESTION,
selectedStatus: undefined, selectedStatus: undefined,
@ -164,7 +163,7 @@ export default {
if (this.selectedStatus !== undefined) { if (this.selectedStatus !== undefined) {
const statusObject = this.findStatusByKey(this.selectedStatus); 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) { if (result === true) {
this.openmct.notifications.info("Successfully set operator status"); this.openmct.notifications.info("Successfully set operator status");
} else { } else {