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

View File

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