ps-toolkit-ui 1.7.89 → 1.7.90

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.
@@ -275,6 +275,7 @@
275
275
  And: ' و ',
276
276
  UsernamePasswordInvalid: 'نام کاربری یا کلمه عبور اشتباه است',
277
277
  DbUpdateException: 'امکان حذف رکورد مورد نظر به دلیل استفاده شدن در سامانه وجود ندارد',
278
+ UserMaxSessionCount: 'تعداد لاگین انجام شده بیش از سقف مجاز است.',
278
279
  // tslint:disable-next-line
279
280
  LoadingDot: '<span class="dot-spinner black"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></span>',
280
281
  LoadingDotWhite: '<span class="dot-spinner white"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></span>',
@@ -8285,11 +8286,11 @@
8285
8286
  this.software = { Version: '0.0' };
8286
8287
  this.setting = {};
8287
8288
  if (data != null) {
8288
- this.user = data.User;
8289
- this.permissions = data.Permissions;
8290
- this.modules = data.Modules;
8291
- this.software = data.Software;
8292
- this.setting = data.Setting;
8289
+ this.user = data.User ? data.User : null;
8290
+ this.permissions = data.Permissions ? data.Permissions : [];
8291
+ this.modules = data.Modules ? data.Modules : [];
8292
+ this.software = data.Software ? data.Software : { Version: '0.0' };
8293
+ this.setting = data.Setting ? data.Setting : {};
8293
8294
  }
8294
8295
  }
8295
8296
  return CurrentDataClass;