Revert "[ADF-4405] [ADF-4423] Fix clipboard directive on json cell (#4623)" (#4642)

This reverts commit 630b1043a96e283403e35826e299b5cd1cd6d11d.
This commit is contained in:
Eugenio Romano 2019-04-23 14:30:08 +01:00 committed by GitHub
parent 0dc28ad987
commit d427e06136
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View File

@ -31,7 +31,7 @@
readonly="readonly">
<mat-icon class="adf-input-action" matSuffix
[clipboard-notification]="'SHARE.CLIPBOARD-MESSAGE' | translate"
[adf-clipboard] [target]="sharedLinkInput">
[adf-clipboard] target="sharedLinkInput">
link
</mat-icon>
</mat-form-field>

View File

@ -49,11 +49,9 @@ export class ClipboardDirective {
@HostListener('mouseenter')
showTooltip() {
if (this.placeholder) {
const componentFactory = this.resolver.resolveComponentFactory(ClipboardComponent);
const componentRef = this.viewContainerRef.createComponent(componentFactory).instance;
componentRef.placeholder = this.placeholder;
}
const componentFactory = this.resolver.resolveComponentFactory(ClipboardComponent);
const componentRef = this.viewContainerRef.createComponent(componentFactory).instance;
componentRef.placeholder = this.placeholder;
}
@HostListener('mouseleave')

View File

@ -27,7 +27,9 @@ import { DataTableCellComponent } from './datatable-cell.component';
<pre
class="adf-datatable-json-cell"
[adf-clipboard]="'CLIPBOARD.CLICK_TO_COPY'"
[clipboard-notification]="'CLIPBOARD.SUCCESS_COPY'">{{ value$ | async | json }}</pre>
[clipboard-notification]="'CLIPBOARD.SUCCESS_COPY'">
{{ value$ | async | json }}
</pre>
</span>
</ng-container>
<ng-template #defaultJsonTemplate>