mirror of
https://github.com/nasa/openmct.git
synced 2024-12-27 16:38:51 +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
|
* @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) {
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user