mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4403] ClipboardDirective - add default translation key and fix styling (#4610)
* [ADF-4403] ClipboardDirective - add default translation key and fix style on sticky header * [ADF-4403] - lint * [ADF-4403] - revert datatable style * [ADF-4403] - fix unit tests * [ADF-4403] - fix e2e tests
This commit is contained in:
committed by
Maurizio Vitale
parent
fafe80c021
commit
834c32f23f
@@ -15,7 +15,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { Directive, Input, HostListener, Component, ViewContainerRef, ComponentFactoryResolver, ViewEncapsulation } from '@angular/core';
|
||||
import { Directive, Input, HostListener, Component, ViewContainerRef, ComponentFactoryResolver, ViewEncapsulation, OnInit } from '@angular/core';
|
||||
import { ClipboardService } from './clipboard.service';
|
||||
|
||||
@Directive({
|
||||
@@ -75,12 +75,17 @@ export class ClipboardDirective {
|
||||
}
|
||||
|
||||
@Component({
|
||||
selector: 'adf-datatable-copy-content-tooltip',
|
||||
selector: 'adf-copy-content-tooltip',
|
||||
template: `
|
||||
<span class='adf-datatable-copy-tooltip'>{{ placeholder | translate }} </span>
|
||||
<span class='adf-copy-tooltip'>{{ placeholder | translate }} </span>
|
||||
`,
|
||||
styleUrls: ['./clipboard.component.scss'],
|
||||
encapsulation: ViewEncapsulation.None
|
||||
})
|
||||
export class ClipboardComponent {
|
||||
export class ClipboardComponent implements OnInit {
|
||||
placeholder: string;
|
||||
|
||||
ngOnInit() {
|
||||
this.placeholder = this.placeholder || 'CLIPBOARD.CLICK_TO_COPY';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user