copy button default show text

Signed-off-by: tykayn <15d65f2f-0b14-4f70-bf34-e130180ed62b@users.tedomum.net>
This commit is contained in:
tykayn 2022-02-10 12:02:21 +01:00
parent 60d846694a
commit fc3f2daec0
2 changed files with 3 additions and 4 deletions

View File

@ -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>

View File

@ -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) {}