mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
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">
|
<button (click)="copy()" class="button is-primary" id="copyLink">
|
||||||
<i class="fa fa-copy" aria-hidden="true"></i>
|
|
||||||
<span *ngIf="displayLabelButton">
|
<span *ngIf="displayLabelButton">
|
||||||
{{ 'admin.copy_link' | translate }}
|
{{ 'success.copy' | translate }}
|
||||||
</span>
|
</span>
|
||||||
<span *ngIf="displayContentToCopy"> " {{ textToCopy }}" </span>
|
<span *ngIf="displayContentToCopy"> " {{ textToCopy }}" </span>
|
||||||
</button>
|
</button>
|
||||||
|
@ -11,7 +11,7 @@ import { ToastService } from '../../../../core/services/toast.service';
|
|||||||
export class CopyTextComponent implements OnInit {
|
export class CopyTextComponent implements OnInit {
|
||||||
@Input() public textToCopy: string;
|
@Input() public textToCopy: string;
|
||||||
public displayContentToCopy = false;
|
public displayContentToCopy = false;
|
||||||
@Input() public displayLabelButton = false;
|
@Input() public displayLabelButton = true;
|
||||||
|
|
||||||
constructor(private _clipboardService: ClipboardService, private toastService: ToastService) {}
|
constructor(private _clipboardService: ClipboardService, private toastService: ToastService) {}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user