[MM-53294] Fix bad user feedback when plugins are disabled (#2772)

This commit is contained in:
Devin Binnie
2023-06-23 09:50:39 -04:00
committed by GitHub
parent 23b2fa6815
commit f51a7d31db
3 changed files with 14 additions and 8 deletions

View File

@@ -16,11 +16,17 @@ export class ServerInfo {
this.remoteInfo = {};
}
fetchRemoteInfo = async () => {
fetchConfigData = async () => {
await this.getRemoteInfo<ClientConfig>(
new URL(`${this.server.url.toString()}/api/v4/config/client?format=old`),
this.onGetConfig,
);
return this.remoteInfo;
}
fetchRemoteInfo = async () => {
await this.fetchConfigData();
await this.getRemoteInfo<Array<{id: string; version: string}>>(
new URL(`${this.server.url.toString()}/api/v4/plugins/webapp`),
this.onGetPlugins,