mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4405] [ADF-4423] Fix clipboard directive on json cell (#4643)
* [ADF-4405] [ADF-4423] Fix clipboard directive on json cell * [ADF-4405] Fix unit tests * [ADF-4405] Fix e2e test
This commit is contained in:
@@ -36,7 +36,7 @@ import { Node } from '@alfresco/js-api';
|
||||
template: `
|
||||
<ng-container>
|
||||
<span *ngIf="copyContent; else defaultCell"
|
||||
adf-clipboard
|
||||
adf-clipboard="CLIPBOARD.CLICK_TO_COPY"
|
||||
[clipboard-notification]="'CLIPBOARD.SUCCESS_COPY'"
|
||||
[attr.aria-label]="value$ | async"
|
||||
[title]="tooltip"
|
||||
|
@@ -27,9 +27,7 @@ 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>
|
||||
|
Reference in New Issue
Block a user