forked from tykayn/funky-framadate-front
copy button default show text
Signed-off-by: tykayn <15d65f2f-0b14-4f70-bf34-e130180ed62b@users.tedomum.net>
This commit is contained in:
parent
60d846694a
commit
fc3f2daec0
@ -1,7 +1,6 @@
|
||||
<button (click)="copy()" class="btn btn--primary btn--outline" id="copyLink">
|
||||
<i class="fa fa-copy" aria-hidden="true"></i>
|
||||
<button (click)="copy()" class="button is-primary" id="copyLink">
|
||||
<span *ngIf="displayLabelButton">
|
||||
{{ 'admin.copy_link' | translate }}
|
||||
{{ 'success.copy' | translate }}
|
||||
</span>
|
||||
<span *ngIf="displayContentToCopy"> " {{ textToCopy }}" </span>
|
||||
</button>
|
||||
|
@ -11,7 +11,7 @@ import { ToastService } from '../../../../core/services/toast.service';
|
||||
export class CopyTextComponent implements OnInit {
|
||||
@Input() public textToCopy: string;
|
||||
public displayContentToCopy = false;
|
||||
@Input() public displayLabelButton = false;
|
||||
@Input() public displayLabelButton = true;
|
||||
|
||||
constructor(private _clipboardService: ClipboardService, private toastService: ToastService) {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user