@seniorsistemas/yms-integration 1.30.0 → 1.30.1

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.
@@ -3300,7 +3300,12 @@ var DocumentGridComponent = /** @class */ (function () {
3300
3300
  this.disabled = false;
3301
3301
  };
3302
3302
  DocumentGridComponent.prototype.cantEditStatus = function () {
3303
- var cantEditStatus = ['CANCELADO', 'EM_EXECUCAO', 'CONCLUIDO'].includes(this.agenda.status.toString());
3303
+ var cantEditStatus = [
3304
+ 'CANCELADO',
3305
+ 'EM_EXECUCAO',
3306
+ 'CONCLUIDO',
3307
+ 'AGUARDANDO_POR_VALIDACAO'
3308
+ ].includes(this.agenda.status.toString());
3304
3309
  if (cantEditStatus) {
3305
3310
  this.enableButtonIsClienteExterno = false;
3306
3311
  }
@@ -3309,6 +3314,7 @@ var DocumentGridComponent = /** @class */ (function () {
3309
3314
  var _this = this;
3310
3315
  return [
3311
3316
  {
3317
+ disabled: this.checkWmsSystemInvalid(),
3312
3318
  label: this.translate.instant("yms.int.wms_search"),
3313
3319
  command: function () {
3314
3320
  _this.selection = [];
@@ -3317,6 +3323,7 @@ var DocumentGridComponent = /** @class */ (function () {
3317
3323
  icon: "fa fa-search"
3318
3324
  },
3319
3325
  {
3326
+ disabled: this.checkWmsSystemInvalid(),
3320
3327
  label: this.translate.instant("yms.int.wms_add_document_register"),
3321
3328
  command: function () {
3322
3329
  _this.selection = [];
@@ -3327,6 +3334,12 @@ var DocumentGridComponent = /** @class */ (function () {
3327
3334
  }
3328
3335
  ];
3329
3336
  };
3337
+ DocumentGridComponent.prototype.checkWmsSystemInvalid = function () {
3338
+ if (this.wmsSystem && this.wmsSystem === WmsSystem.NONE) {
3339
+ return true;
3340
+ }
3341
+ return false;
3342
+ };
3330
3343
  DocumentGridComponent.prototype.getProp = function (obj, path) {
3331
3344
  return path.split(".").reduce(function (result, prop) { return (result[prop] === undefined ? "" : result[prop]); }, obj);
3332
3345
  };