@schneideress/dashboardframework 0.0.240 → 0.0.242

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.
@@ -2525,7 +2525,7 @@ var RAWidgetContainer = /** @class */ (function () {
2525
2525
  this.isDownloadIconVisible = true;
2526
2526
  }
2527
2527
  else {
2528
- if (!this.isWidgetMgmnt && !this.detailPageUrl) {
2528
+ if ((!this.isWidgetMgmnt || this.data.widgetInfo.isPortfolioClientDB) && !this.detailPageUrl) {
2529
2529
  this.showSettingsLink = false;
2530
2530
  }
2531
2531
  }
@@ -2608,7 +2608,7 @@ var RAWidgetContainer = /** @class */ (function () {
2608
2608
  /** @type {?} */
2609
2609
  var html = _this.getContenxtHtml(style);
2610
2610
  jQuery(html).appendTo('body');
2611
- if (_this.isWidgetMgmnt) {
2611
+ if (_this.isWidgetMgmnt && !_this.data.widgetInfo.isPortfolioClientDB) {
2612
2612
  _this.addEventListener('wcEditWidget', _this.editWidget);
2613
2613
  _this.addEventListener('wcCopyWidget', _this.copyWidget);
2614
2614
  _this.addEventListener('wcMoveWidget', _this.moveWidget);
@@ -2698,7 +2698,7 @@ var RAWidgetContainer = /** @class */ (function () {
2698
2698
  var html = '<div id="ra-db-widget-menu"' + 'style="' + style + '" class="download-content dropdown-content widget-config-item dropdown-click" style="z-index: 1002;">';
2699
2699
  /** @type {?} */
2700
2700
  var settings = '';
2701
- if (this.isWidgetMgmnt) {
2701
+ if (this.isWidgetMgmnt && !this.data.widgetInfo.isPortfolioClientDB) {
2702
2702
  settings += this.getHtmlForButton('wcEditWidget', 'fal fa-edit', this.editText);
2703
2703
  settings += this.getHtmlForButton('wcCopyWidget', 'fal fa-copy', this.copyText);
2704
2704
  settings += this.getHtmlForButton('wcMoveWidget', 'fal fa-arrows-alt', this.moveText);
@@ -2718,7 +2718,7 @@ var RAWidgetContainer = /** @class */ (function () {
2718
2718
  settings += this.translateService.translate('Common.visitpage');
2719
2719
  settings += '</span></a>';
2720
2720
  }
2721
- if (this.detailPageUrl || this.isWidgetMgmnt) {
2721
+ if (this.detailPageUrl || (this.isWidgetMgmnt && !this.data.widgetInfo.isPortfolioClientDB)) {
2722
2722
  html += '<div style="color: #9FA0A4;font-size: 12px;padding-top: 8px;padding-left: 12px;">';
2723
2723
  html += this.translateService.translate('Common.settings') + '</div>';
2724
2724
  html += settings;
@@ -2726,7 +2726,7 @@ var RAWidgetContainer = /** @class */ (function () {
2726
2726
  }
2727
2727
  if (this.isDownloadIconVisible) {
2728
2728
  if (this.showExcell) {
2729
- if (this.detailPageUrl || this.isWidgetMgmnt)
2729
+ if (this.detailPageUrl || (this.isWidgetMgmnt && !this.data.widgetInfo.isPortfolioClientDB))
2730
2730
  html += '<span style="color: #9FA0A4;font-size: 12px;">';
2731
2731
  else
2732
2732
  html += '<span style="color: #9FA0A4;font-size: 12px;padding-top:5px;display:block;">';
@@ -2747,10 +2747,10 @@ var RAWidgetContainer = /** @class */ (function () {
2747
2747
  html += '</div>';
2748
2748
  }
2749
2749
  }
2750
- if (this.isDownloadIconVisible && this.isWidgetMgmnt && this.showExcell) {
2750
+ if (this.isDownloadIconVisible && (this.isWidgetMgmnt && !this.data.widgetInfo.isPortfolioClientDB) && this.showExcell) {
2751
2751
  html += this.getHr();
2752
2752
  }
2753
- if (this.isWidgetMgmnt) {
2753
+ if (this.isWidgetMgmnt && !this.data.widgetInfo.isPortfolioClientDB) {
2754
2754
  html += '<a id="wcWidgetDelete"><i class="fal fa-times" style="padding-left: 3px;color: red;"></i><span>';
2755
2755
  html += this.deleteText;
2756
2756
  html += '</span></a>';