mario-core 1.1.32-es → 1.1.35-es-layout

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -7878,6 +7878,10 @@ var useLogin = function useLogin() {
7878
7878
  profileImageFileName: profileImageFileName
7879
7879
  }));
7880
7880
 
7881
+ if (!localStorage.getItem("ROLES") && roles.includes("Admin")) {
7882
+ localStorage.setItem("ROLES", "Admin");
7883
+ }
7884
+
7881
7885
  if (data !== null && data !== void 0 && data.email && !roles.includes("Admin")) {
7882
7886
  var _data$roles;
7883
7887
 
@@ -9337,7 +9341,6 @@ var TheContent = function TheContent(_ref) {
9337
9341
  var pathname = location.pathname;
9338
9342
  var dashboard = !pathname.includes("/admin") ? "box-container" : "";
9339
9343
  var padding = pathname === "/admin" ? "pt-3" : "";
9340
- console.log(routes);
9341
9344
  return React__default.createElement("main", {
9342
9345
  className: "c-main " + dashboard
9343
9346
  }, React__default.createElement(react.CContainer, {
@@ -13057,20 +13060,12 @@ var useNotificationList = function useNotificationList() {
13057
13060
  extraData = notification.extraData;
13058
13061
 
13059
13062
  switch (source) {
13060
- case "AssessmentAssignment":
13061
- window.open("/player/diagnosticsurvey/" + Number(extraData));
13062
- break;
13063
-
13064
13063
  case "NewConferenceCreated":
13065
- window.open("/start-conference/" + ((_JSON$parse = JSON.parse(extraData)) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse[0]) + "/" + ((_JSON$parse2 = JSON.parse(extraData)) === null || _JSON$parse2 === void 0 ? void 0 : _JSON$parse2[1]) + "/conferenceRubric");
13064
+ window.open("/start-conference/" + ((_JSON$parse = JSON.parse(extraData)) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse[0]) + "/" + ((_JSON$parse2 = JSON.parse(extraData)) === null || _JSON$parse2 === void 0 ? void 0 : _JSON$parse2[1]));
13066
13065
  break;
13067
13066
 
13068
13067
  case "NewSessionCreated":
13069
- window.open("/start-question/" + ((_JSON$parse3 = JSON.parse(extraData)) === null || _JSON$parse3 === void 0 ? void 0 : _JSON$parse3[0]) + "/" + ((_JSON$parse4 = JSON.parse(extraData)) === null || _JSON$parse4 === void 0 ? void 0 : _JSON$parse4[1]));
13070
- break;
13071
-
13072
- case "CertificateApproved":
13073
- window.open("/dashboard/certification/2");
13068
+ window.open("/start-session/" + ((_JSON$parse3 = JSON.parse(extraData)) === null || _JSON$parse3 === void 0 ? void 0 : _JSON$parse3[0]) + "/" + ((_JSON$parse4 = JSON.parse(extraData)) === null || _JSON$parse4 === void 0 ? void 0 : _JSON$parse4[1]));
13074
13069
  break;
13075
13070
  }
13076
13071
  };