mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
25 lines
569 B
TypeScript
25 lines
569 B
TypeScript
import { Component, Input, OnInit } from '@angular/core';
|
|
import { MessageService } from 'primeng/api';
|
|
|
|
@Component({
|
|
selector: 'framadate-copy-text',
|
|
templateUrl: './copy-text.component.html',
|
|
styleUrls: ['./copy-text.component.scss'],
|
|
})
|
|
export class CopyTextComponent implements OnInit {
|
|
@Input() public textToCopy: any;
|
|
displayContentToCopy = false;
|
|
|
|
constructor(private messageService: MessageService) {}
|
|
|
|
ngOnInit() {}
|
|
|
|
handleClick() {
|
|
this.messageService.add({
|
|
severity: 'success',
|
|
summary: 'Texte copié',
|
|
detail: this.textToCopy,
|
|
});
|
|
}
|
|
}
|