@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.
@@ -2736,7 +2736,7 @@
2736
2736
  this.isDownloadIconVisible = true;
2737
2737
  }
2738
2738
  else {
2739
- if (!this.isWidgetMgmnt && !this.detailPageUrl) {
2739
+ if ((!this.isWidgetMgmnt || this.data.widgetInfo.isPortfolioClientDB) && !this.detailPageUrl) {
2740
2740
  this.showSettingsLink = false;
2741
2741
  }
2742
2742
  }
@@ -2819,7 +2819,7 @@
2819
2819
  /** @type {?} */
2820
2820
  var html = _this.getContenxtHtml(style);
2821
2821
  jQuery(html).appendTo('body');
2822
- if (_this.isWidgetMgmnt) {
2822
+ if (_this.isWidgetMgmnt && !_this.data.widgetInfo.isPortfolioClientDB) {
2823
2823
  _this.addEventListener('wcEditWidget', _this.editWidget);
2824
2824
  _this.addEventListener('wcCopyWidget', _this.copyWidget);
2825
2825
  _this.addEventListener('wcMoveWidget', _this.moveWidget);
@@ -2909,7 +2909,7 @@
2909
2909
  var html = '<div id="ra-db-widget-menu"' + 'style="' + style + '" class="download-content dropdown-content widget-config-item dropdown-click" style="z-index: 1002;">';
2910
2910
  /** @type {?} */
2911
2911
  var settings = '';
2912
- if (this.isWidgetMgmnt) {
2912
+ if (this.isWidgetMgmnt && !this.data.widgetInfo.isPortfolioClientDB) {
2913
2913
  settings += this.getHtmlForButton('wcEditWidget', 'fal fa-edit', this.editText);
2914
2914
  settings += this.getHtmlForButton('wcCopyWidget', 'fal fa-copy', this.copyText);
2915
2915
  settings += this.getHtmlForButton('wcMoveWidget', 'fal fa-arrows-alt', this.moveText);
@@ -2929,7 +2929,7 @@
2929
2929
  settings += this.translateService.translate('Common.visitpage');
2930
2930
  settings += '</span></a>';
2931
2931
  }
2932
- if (this.detailPageUrl || this.isWidgetMgmnt) {
2932
+ if (this.detailPageUrl || (this.isWidgetMgmnt && !this.data.widgetInfo.isPortfolioClientDB)) {
2933
2933
  html += '<div style="color: #9FA0A4;font-size: 12px;padding-top: 8px;padding-left: 12px;">';
2934
2934
  html += this.translateService.translate('Common.settings') + '</div>';
2935
2935
  html += settings;
@@ -2937,7 +2937,7 @@
2937
2937
  }
2938
2938
  if (this.isDownloadIconVisible) {
2939
2939
  if (this.showExcell) {
2940
- if (this.detailPageUrl || this.isWidgetMgmnt)
2940
+ if (this.detailPageUrl || (this.isWidgetMgmnt && !this.data.widgetInfo.isPortfolioClientDB))
2941
2941
  html += '<span style="color: #9FA0A4;font-size: 12px;">';
2942
2942
  else
2943
2943
  html += '<span style="color: #9FA0A4;font-size: 12px;padding-top:5px;display:block;">';
@@ -2958,10 +2958,10 @@
2958
2958
  html += '</div>';
2959
2959
  }
2960
2960
  }
2961
- if (this.isDownloadIconVisible && this.isWidgetMgmnt && this.showExcell) {
2961
+ if (this.isDownloadIconVisible && (this.isWidgetMgmnt && !this.data.widgetInfo.isPortfolioClientDB) && this.showExcell) {
2962
2962
  html += this.getHr();
2963
2963
  }
2964
- if (this.isWidgetMgmnt) {
2964
+ if (this.isWidgetMgmnt && !this.data.widgetInfo.isPortfolioClientDB) {
2965
2965
  html += '<a id="wcWidgetDelete"><i class="fal fa-times" style="padding-left: 3px;color: red;"></i><span>';
2966
2966
  html += this.deleteText;
2967
2967
  html += '</span></a>';