ui-core-abv 0.5.0 → 0.5.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.
@@ -4919,12 +4919,12 @@ class UicWorkPanelComponent {
4919
4919
  this.renderActiveTab();
4920
4920
  this.tabSelected.emit(id);
4921
4921
  }
4922
- close() {
4922
+ close(omitWarning = false) {
4923
4923
  if (this.activeTabId)
4924
- this.closeTab(this.activeTabId);
4924
+ this.closeTab(this.activeTabId, omitWarning);
4925
4925
  }
4926
- closeTab(id) {
4927
- if (this.closeWarning) {
4926
+ closeTab(id, omitWarning = false) {
4927
+ if (this.closeWarning && !omitWarning) {
4928
4928
  this.tinyAlert.showAlert(this.closeWarning).then(r => {
4929
4929
  if (r.value)
4930
4930
  this.destroyPanel(id);