@c8y/ngx-components 1023.14.168 → 1023.14.171

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.
@@ -30401,7 +30401,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
30401
30401
  }] } });
30402
30402
 
30403
30403
  const CopyDashboardDisabledReason = {
30404
- PERMISSIONS: 'PERMISSIONS',
30405
30404
  WRONG_REFERENCE: 'WRONG_REFERENCE'
30406
30405
  };
30407
30406
  const NEW_DASHBOARD_ROUTER_STATE_PROP = 'newDashboard';
@@ -31256,10 +31255,7 @@ class WidgetsDashboardComponent {
31256
31255
  if (typeof this.isCopyDisabled === 'boolean' || this.isCopyDisabled?.state) {
31257
31256
  return;
31258
31257
  }
31259
- if (this.isCopyDisabled?.reason === CopyDashboardDisabledReason.PERMISSIONS) {
31260
- this.copyDisabledPopoverMsg = gettext$1('To copy this dashboard, contact your administrator to request the necessary permissions.');
31261
- }
31262
- else if (this.isCopyDisabled?.reason === CopyDashboardDisabledReason.WRONG_REFERENCE) {
31258
+ if (this.isCopyDisabled?.reason === CopyDashboardDisabledReason.WRONG_REFERENCE) {
31263
31259
  const viewContext = this.route.parent.snapshot.data?.context;
31264
31260
  if (viewContext) {
31265
31261
  const ctx = viewContext.split('/').shift();