Load the list of roles in memory

This commit is contained in:
2021-05-14 18:51:57 +02:00
parent 5334fd9430
commit 69c68f43cb
4 changed files with 57 additions and 22 deletions

View File

@@ -6,6 +6,7 @@
import React from "react";
import { AccountHelper } from "../../helpers/AccountHelper";
import { AdminRolesHelper } from "../../helpers/AdminRolesHelper";
import { LoginRoute } from "../routes/LoginRoute";
import { MainRoute } from "../routes/MainRoute";
import { AsyncWidget } from "./AsyncWidget";
@@ -31,6 +32,9 @@ export class InitWidget extends React.Component<{}, InitWidgetState> {
if (AccountHelper.hasAccessToken) {
await AccountHelper.refreshCurrentAccountInfo();
await AdminRolesHelper.LoadRolesList();
this.setState({ signedIn: true });
}
}