@egovernments/digit-ui-module-core 1.5.0-beta.2 → 1.5.0-beta.28

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.
@@ -384,6 +384,7 @@ var Login = function Login(_ref) {
384
384
  return;
385
385
  }
386
386
 
387
+ Digit.SessionStorage.set("citizen.userRequestObject", user);
387
388
  Digit.UserService.setUser(user);
388
389
  setCitizenDetail(user === null || user === void 0 ? void 0 : user.info, user === null || user === void 0 ? void 0 : user.access_token, stateCode);
389
390
  var redirectPath = ((_location$state2 = location.state) === null || _location$state2 === void 0 ? void 0 : _location$state2.from) || DEFAULT_REDIRECT_URL;
@@ -3354,6 +3355,10 @@ var EmployeeSideBar = function EmployeeSideBar() {
3354
3355
  var STADMIN = Digit.UserService.hasAccess("STADMIN");
3355
3356
  var NATADMIN = Digit.UserService.hasAccess("NATADMIN");
3356
3357
 
3358
+ function getRedirectionUrl() {
3359
+ if (NATADMIN) return "/digit-ui/employee/payment/integration/dss/NURT_DASHBOARD";else if (STADMIN) return "/employee/integration/dss/home";else return "/employee";
3360
+ }
3361
+
3357
3362
  var _useTranslation = useTranslation(),
3358
3363
  t = _useTranslation.t;
3359
3364
 
@@ -3379,7 +3384,7 @@ var EmployeeSideBar = function EmployeeSideBar() {
3379
3384
  t: t,
3380
3385
  label: "ACTION_TEST_HOME"
3381
3386
  }))), /*#__PURE__*/React.createElement("a", {
3382
- href: "/employee"
3387
+ href: getRedirectionUrl()
3383
3388
  }, /*#__PURE__*/React.createElement("div", {
3384
3389
  className: "actions"
3385
3390
  }, /*#__PURE__*/React.createElement(ToolTipWrapper, {