mirror of
https://github.com/nasa/openmct.git
synced 2025-01-04 04:14:09 +00:00
refactor: rename some functions
This commit is contained in:
parent
7097101c96
commit
efd5466482
@ -151,16 +151,16 @@ export default class StatusAPI extends EventEmitter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fetch the list of possible mission status options
|
* Fetch the list of possible mission roles
|
||||||
* @returns {Promise<MissionStatusOption[]>} the current mission status
|
* @returns {Promise<MissionRole[]>} the list of possible mission roles
|
||||||
*/
|
*/
|
||||||
async getPossibleMissionStatuses() {
|
async getPossibleMissionRoles() {
|
||||||
const provider = this.#userAPI.getProvider();
|
const provider = this.#userAPI.getProvider();
|
||||||
|
|
||||||
if (provider.getPossibleMissionStatuses) {
|
if (provider.getPossibleMissionRoles) {
|
||||||
const possibleStatuses = await provider.getPossibleMissionStatuses();
|
const possibleRoles = await provider.getPossibleMissionRoles();
|
||||||
|
|
||||||
return possibleStatuses;
|
return possibleRoles;
|
||||||
} else {
|
} else {
|
||||||
this.#userAPI.error('User provider does not support mission statuses');
|
this.#userAPI.error('User provider does not support mission statuses');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user