diff --git a/lib/content-services/content-node-share/content-node-share.dialog.html b/lib/content-services/content-node-share/content-node-share.dialog.html index cc5e893393..5e1fe28e19 100644 --- a/lib/content-services/content-node-share/content-node-share.dialog.html +++ b/lib/content-services/content-node-share/content-node-share.dialog.html @@ -31,7 +31,7 @@ readonly="readonly"> + [adf-clipboard] [target]="sharedLinkInput"> link diff --git a/lib/core/clipboard/clipboard.directive.ts b/lib/core/clipboard/clipboard.directive.ts index 38c96ca255..68f27b50e3 100644 --- a/lib/core/clipboard/clipboard.directive.ts +++ b/lib/core/clipboard/clipboard.directive.ts @@ -49,9 +49,11 @@ export class ClipboardDirective { @HostListener('mouseenter') showTooltip() { - const componentFactory = this.resolver.resolveComponentFactory(ClipboardComponent); - const componentRef = this.viewContainerRef.createComponent(componentFactory).instance; - componentRef.placeholder = this.placeholder; + if (this.placeholder) { + const componentFactory = this.resolver.resolveComponentFactory(ClipboardComponent); + const componentRef = this.viewContainerRef.createComponent(componentFactory).instance; + componentRef.placeholder = this.placeholder; + } } @HostListener('mouseleave') diff --git a/lib/core/datatable/components/datatable/json-cell.component.ts b/lib/core/datatable/components/datatable/json-cell.component.ts index 500a867e16..92c11e326f 100644 --- a/lib/core/datatable/components/datatable/json-cell.component.ts +++ b/lib/core/datatable/components/datatable/json-cell.component.ts @@ -27,9 +27,7 @@ import { DataTableCellComponent } from './datatable-cell.component';
-                    {{ value$ | async | json }}
-                
+ [clipboard-notification]="'CLIPBOARD.SUCCESS_COPY'">{{ value$ | async | json }}