@itilite/iui-user-management 0.4.7 → 0.4.8

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.
@@ -1507,7 +1507,7 @@ var makePrimaryAdmin = function makePrimaryAdmin(payload) {
1507
1507
  return new Promise(function (resolve, reject) {
1508
1508
  api$1.put(userAddEditUrl.primaryAdmin(payload.userId)).then(function (res) {
1509
1509
  if (res) {
1510
- IUIToastMessageService.sNotify('Primary Admin updated successfully.');
1510
+ IUIToastMessageService.sNotify(res.data.message.toString());
1511
1511
  resolve();
1512
1512
  } else {
1513
1513
  reject(res);
@@ -1527,7 +1527,7 @@ var resetPasswordForUser = function resetPasswordForUser(data) {
1527
1527
  api$1.post("" + userAddEditUrl.resetPasswordForUserApi(), {
1528
1528
  email: data.email
1529
1529
  }).then(function (res) {
1530
- IUIToastMessageService.sNotify(res.data.message.toString());
1530
+ IUIToastMessageService.sNotify(res.data.status.toString());
1531
1531
  resolve();
1532
1532
  })["catch"](function (err) {
1533
1533
  if (!err.response.data.status) {