mirror of
https://github.com/nasa/openmct.git
synced 2024-12-20 13:43: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
|
||||
* @returns {Promise<MissionStatusOption[]>} the current mission status
|
||||
* Fetch the list of possible mission roles
|
||||
* @returns {Promise<MissionRole[]>} the list of possible mission roles
|
||||
*/
|
||||
async getPossibleMissionStatuses() {
|
||||
async getPossibleMissionRoles() {
|
||||
const provider = this.#userAPI.getProvider();
|
||||
|
||||
if (provider.getPossibleMissionStatuses) {
|
||||
const possibleStatuses = await provider.getPossibleMissionStatuses();
|
||||
if (provider.getPossibleMissionRoles) {
|
||||
const possibleRoles = await provider.getPossibleMissionRoles();
|
||||
|
||||
return possibleStatuses;
|
||||
return possibleRoles;
|
||||
} else {
|
||||
this.#userAPI.error('User provider does not support mission statuses');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user