mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
This reverts commit 630b1043a96e283403e35826e299b5cd1cd6d11d.
This commit is contained in:
parent
0dc28ad987
commit
d427e06136
@ -31,7 +31,7 @@
|
|||||||
readonly="readonly">
|
readonly="readonly">
|
||||||
<mat-icon class="adf-input-action" matSuffix
|
<mat-icon class="adf-input-action" matSuffix
|
||||||
[clipboard-notification]="'SHARE.CLIPBOARD-MESSAGE' | translate"
|
[clipboard-notification]="'SHARE.CLIPBOARD-MESSAGE' | translate"
|
||||||
[adf-clipboard] [target]="sharedLinkInput">
|
[adf-clipboard] target="sharedLinkInput">
|
||||||
link
|
link
|
||||||
</mat-icon>
|
</mat-icon>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
@ -49,11 +49,9 @@ export class ClipboardDirective {
|
|||||||
|
|
||||||
@HostListener('mouseenter')
|
@HostListener('mouseenter')
|
||||||
showTooltip() {
|
showTooltip() {
|
||||||
if (this.placeholder) {
|
const componentFactory = this.resolver.resolveComponentFactory(ClipboardComponent);
|
||||||
const componentFactory = this.resolver.resolveComponentFactory(ClipboardComponent);
|
const componentRef = this.viewContainerRef.createComponent(componentFactory).instance;
|
||||||
const componentRef = this.viewContainerRef.createComponent(componentFactory).instance;
|
componentRef.placeholder = this.placeholder;
|
||||||
componentRef.placeholder = this.placeholder;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@HostListener('mouseleave')
|
@HostListener('mouseleave')
|
||||||
|
@ -27,7 +27,9 @@ import { DataTableCellComponent } from './datatable-cell.component';
|
|||||||
<pre
|
<pre
|
||||||
class="adf-datatable-json-cell"
|
class="adf-datatable-json-cell"
|
||||||
[adf-clipboard]="'CLIPBOARD.CLICK_TO_COPY'"
|
[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>
|
</span>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<ng-template #defaultJsonTemplate>
|
<ng-template #defaultJsonTemplate>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user