@wizishop/angular-components 0.0.110 → 0.0.111

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.
@@ -941,9 +941,12 @@
941
941
  get: function () {
942
942
  return this._isLoading;
943
943
  },
944
- set: function (value) {
945
- this._isLoading = value;
946
- this.isLoadingChange.next(value);
944
+ set: function (isLoading) {
945
+ if (isLoading) {
946
+ this.launchLoading();
947
+ }
948
+ this._isLoading = isLoading;
949
+ this.isLoadingChange.next(isLoading);
947
950
  },
948
951
  enumerable: false,
949
952
  configurable: true
@@ -988,20 +991,21 @@
988
991
  };
989
992
  ButtonComponent.prototype.onButtonClick = function (event) {
990
993
  event.stopPropagation();
991
- if (!this.disabled) {
992
- if (this.hasLoader) {
993
- this.launchLoading();
994
- }
995
- if (!this.waitForConfirmDelete) {
996
- this.click.emit(event);
997
- if (this.confirmDelete) {
998
- this.resetMaxWidthDelete();
999
- }
1000
- }
1001
- else {
1002
- this.waitForConfirmDelete = false;
994
+ if (this.disabled) {
995
+ return;
996
+ }
997
+ if (this.hasLoader) {
998
+ this.launchLoading();
999
+ }
1000
+ if (!this.waitForConfirmDelete) {
1001
+ this.click.emit(event);
1002
+ if (this.confirmDelete) {
1003
+ this.resetMaxWidthDelete();
1003
1004
  }
1004
1005
  }
1006
+ else {
1007
+ this.waitForConfirmDelete = false;
1008
+ }
1005
1009
  };
1006
1010
  ButtonComponent.prototype.ngAfterViewInit = function () {
1007
1011
  var _this = this;