diff options
Diffstat (limited to 'src/pybind/mgr/dashboard/frontend/src/app/shared/components/copy2clipboard-button/copy2clipboard-button.component.html')
-rw-r--r-- | src/pybind/mgr/dashboard/frontend/src/app/shared/components/copy2clipboard-button/copy2clipboard-button.component.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/copy2clipboard-button/copy2clipboard-button.component.html b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/copy2clipboard-button/copy2clipboard-button.component.html new file mode 100644 index 000000000..655364eef --- /dev/null +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/copy2clipboard-button/copy2clipboard-button.component.html @@ -0,0 +1,15 @@ +<i [ngClass]="[icons.clipboard, icons.large]" + (click)="onClick()" + class="text-primary ms-2" + title="Copy to Clipboard" + *ngIf="showIconOnly; else withButtonTpl"></i> + +<ng-template #withButtonTpl> + <button (click)="onClick()" + type="button" + class="btn btn-light" + i18n-title + title="Copy to Clipboard"> + <i [ngClass]="[icons.clipboard]"></i> + </button> +</ng-template> |